aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMagnuz Binder2015-03-20 19:12:43 +0100
committerMichael Cerquoni2015-04-20 16:42:06 -0400
commite855c8e7118823808f6af89f878f81858fbf35c6 (patch)
treea2d6eb30090cc60929b56060f227729e135c33e9 /OpenSim/Region
parentEnable grab feature (Ctrl+Drag) for non-physical link-sets and add code to ha... (diff)
downloadopensim-SC-e855c8e7118823808f6af89f878f81858fbf35c6.zip
opensim-SC-e855c8e7118823808f6af89f878f81858fbf35c6.tar.gz
opensim-SC-e855c8e7118823808f6af89f878f81858fbf35c6.tar.bz2
opensim-SC-e855c8e7118823808f6af89f878f81858fbf35c6.tar.xz
Allow setting profilecut diff to 0.02 from scripts just like from viewer.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 5436888..e20e4c4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7788,13 +7788,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7788 { 7788 {
7789 profilecut.y = 1f; 7789 profilecut.y = 1f;
7790 } 7790 }
7791 if (profilecut.y - profilecut.x < 0.05f) 7791 if (profilecut.y - profilecut.x < 0.02f)
7792 { 7792 {
7793 profilecut.x = profilecut.y - 0.05f; 7793 profilecut.x = profilecut.y - 0.02f;
7794 if (profilecut.x < 0.0f) 7794 if (profilecut.x < 0.0f)
7795 { 7795 {
7796 profilecut.x = 0.0f; 7796 profilecut.x = 0.0f;
7797 profilecut.y = 0.05f; 7797 profilecut.y = 0.02f;
7798 } 7798 }
7799 } 7799 }
7800 shapeBlock.ProfileBegin = (ushort)(50000 * profilecut.x); 7800 shapeBlock.ProfileBegin = (ushort)(50000 * profilecut.x);