Allow setting dimple diff to 0.02 from scripts just like from viewer, add clipping and fix old copy-paste error.
parent
5af82df9b6
commit
68ed200191
|
@ -7579,9 +7579,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
{
|
||||
dimple.y = 1f;
|
||||
}
|
||||
if (dimple.y - cut.x < 0.05f)
|
||||
if (dimple.y - dimple.x < 0.02f)
|
||||
{
|
||||
dimple.x = cut.y - 0.05f;
|
||||
dimple.x = dimple.y - 0.02f;
|
||||
if (dimple.x < 0.0f)
|
||||
{
|
||||
dimple.x = 0.0f;
|
||||
dimple.y = 0.02f;
|
||||
}
|
||||
}
|
||||
shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x);
|
||||
shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y));
|
||||
|
|
Loading…
Reference in New Issue