aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorSignpostMarv2012-08-02 09:28:32 +0100
committerJustin Clark-Casey (justincc)2012-08-17 23:23:03 +0100
commit7068fddd2fffe356869171ed67be473f7a701470 (patch)
tree3f97a41c06cc2dc9406f4946f57ad9e0abcd71b0 /OpenSim/Region/ScriptEngine/Shared/Api
parentimplemented (diff)
downloadopensim-SC_OLD-7068fddd2fffe356869171ed67be473f7a701470.zip
opensim-SC_OLD-7068fddd2fffe356869171ed67be473f7a701470.tar.gz
opensim-SC_OLD-7068fddd2fffe356869171ed67be473f7a701470.tar.bz2
opensim-SC_OLD-7068fddd2fffe356869171ed67be473f7a701470.tar.xz
fixing bug that get/set the wrong property for prim types other than sphere & box
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
1 files changed, 4 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 75491da..31d1660 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -8347,9 +8347,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8347 res.Add(new LSL_Vector(GetPartLocalPos(part))); 8347 res.Add(new LSL_Vector(GetPartLocalPos(part)));
8348 break; 8348 break;
8349 case (int)ScriptBaseClass.PRIM_SLICE: 8349 case (int)ScriptBaseClass.PRIM_SLICE:
8350 PrimType prim_type = part.GetPrimType();
8351 bool useProfileBeginEnd = (prim_type == PrimType.SPHERE || prim_type == PrimType.TORUS || prim_type == PrimType.TUBE || prim_type == PrimType.RING);
8350 res.Add(new LSL_Vector( 8352 res.Add(new LSL_Vector(
8351 (part.GetPrimType() == PrimType.SPHERE ? part.Shape.ProfileBegin : part.Shape.PathBegin) / 50000.0, 8353 (useProfileBeginEnd ? part.Shape.ProfileBegin : part.Shape.PathBegin) / 50000.0,
8352 1 - (part.GetPrimType() == PrimType.SPHERE ? part.Shape.ProfileEnd : part.Shape.PathEnd) / 50000.0, 8354 1 - (useProfileBeginEnd ? part.Shape.ProfileEnd : part.Shape.PathEnd) / 50000.0,
8353 0 8355 0
8354 )); 8356 ));
8355 break; 8357 break;