aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorMelanie2010-10-24 17:18:21 +0200
committerMelanie2010-10-24 17:18:21 +0200
commit5f266fd57131193a9ff37b03f214aa0476e2e3aa (patch)
treeb9d64666c5b285ea0274fa37256e5ccb5d704561 /OpenSim/Region/ScriptEngine
parentMerge branch 'careminster-presence-refactor' of ssh://melanie@3dhosting.de/va... (diff)
downloadopensim-SC_OLD-5f266fd57131193a9ff37b03f214aa0476e2e3aa.zip
opensim-SC_OLD-5f266fd57131193a9ff37b03f214aa0476e2e3aa.tar.gz
opensim-SC_OLD-5f266fd57131193a9ff37b03f214aa0476e2e3aa.tar.bz2
opensim-SC_OLD-5f266fd57131193a9ff37b03f214aa0476e2e3aa.tar.xz
Change the results from llGetPrimitiveParams to be the same as SL for
the prim position. This will make attached resizer scripts work like SL. Existing resizers may be affected adversely.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs7
1 files changed, 0 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 3249ae2..94d3dee 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -8029,13 +8029,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8029 LSL_Vector v = new LSL_Vector(part.AbsolutePosition.X, 8029 LSL_Vector v = new LSL_Vector(part.AbsolutePosition.X,
8030 part.AbsolutePosition.Y, 8030 part.AbsolutePosition.Y,
8031 part.AbsolutePosition.Z); 8031 part.AbsolutePosition.Z);
8032 // For some reason, the part.AbsolutePosition.* values do not change if the
8033 // linkset is rotated; they always reflect the child prim's world position
8034 // as though the linkset is unrotated. This is incompatible behavior with SL's
8035 // implementation, so will break scripts imported from there (not to mention it
8036 // makes it more difficult to determine a child prim's actual inworld position).
8037 if (part.ParentID != 0)
8038 v = ((v - llGetRootPosition()) * llGetRootRotation()) + llGetRootPosition();
8039 res.Add(v); 8032 res.Add(v);
8040 break; 8033 break;
8041 8034