diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 2e8b053..b333b55 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -8047,7 +8047,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
8047 | sp.OffsetPosition = rules.GetVector3Item(idx++); | 8047 | sp.OffsetPosition = rules.GetVector3Item(idx++); |
8048 | break; | 8048 | break; |
8049 | 8049 | ||
8050 | case (int)ScriptBaseClass.PRIM_ROTATION: | 8050 | case (int)ScriptBaseClass.PRIM_ROTATION: |
8051 | if (remain < 1) | ||
8052 | return null; | ||
8053 | |||
8054 | Quaternion inRot = rules.GetQuaternionItem(idx++); | ||
8055 | |||
8056 | SceneObjectPart parentPart = sp.ParentPart; | ||
8057 | |||
8058 | if (parentPart != null) | ||
8059 | sp.Rotation = m_host.GetWorldRotation() * inRot; | ||
8060 | |||
8061 | break; | ||
8062 | |||
8051 | case (int)ScriptBaseClass.PRIM_ROT_LOCAL: | 8063 | case (int)ScriptBaseClass.PRIM_ROT_LOCAL: |
8052 | if (remain < 1) | 8064 | if (remain < 1) |
8053 | return null; | 8065 | return null; |