aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorMagnuz Binder2015-03-20 19:30:45 +0100
committerRobert Adams2015-03-22 09:53:03 -0700
commit68ed200191d61171c5c1ae38e29b90bd9b3d4954 (patch)
tree8b3ba7b8fc0e8bb4d15db2a769518ba85f11a0fe /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentviewers can set a minimum distance 0.02 between path cut start and path cut end (diff)
downloadopensim-SC-68ed200191d61171c5c1ae38e29b90bd9b3d4954.zip
opensim-SC-68ed200191d61171c5c1ae38e29b90bd9b3d4954.tar.gz
opensim-SC-68ed200191d61171c5c1ae38e29b90bd9b3d4954.tar.bz2
opensim-SC-68ed200191d61171c5c1ae38e29b90bd9b3d4954.tar.xz
Allow setting dimple diff to 0.02 from scripts just like from viewer, add clipping and fix old copy-paste error.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index f874db8..580d943 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7579,9 +7579,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7579 { 7579 {
7580 dimple.y = 1f; 7580 dimple.y = 1f;
7581 } 7581 }
7582 if (dimple.y - cut.x < 0.05f) 7582 if (dimple.y - dimple.x < 0.02f)
7583 { 7583 {
7584 dimple.x = cut.y - 0.05f; 7584 dimple.x = dimple.y - 0.02f;
7585 if (dimple.x < 0.0f)
7586 {
7587 dimple.x = 0.0f;
7588 dimple.y = 0.02f;
7589 }
7585 } 7590 }
7586 shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x); 7591 shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x);
7587 shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y)); 7592 shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y));