diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 9 |
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)); |