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