diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 62b52f2..0908cd6 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6440,20 +6440,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6440 | { | 6440 | { |
6441 | // special case: If we are root, rotate complete SOG to new rotation | 6441 | // special case: If we are root, rotate complete SOG to new rotation |
6442 | SetRot(part, Rot2Quaternion(q)); | 6442 | SetRot(part, Rot2Quaternion(q)); |
6443 | } | 6443 | } |
6444 | else | 6444 | else |
6445 | { | 6445 | { |
6446 | // we are a child. The rotation values will be set to the one of root modified by rot, as in SL. Don't ask. | 6446 | // we are a child. The rotation values will be set to the one of root modified by rot, as in SL. Don't ask. |
6447 | SceneObjectGroup group = part.ParentGroup; | 6447 | SceneObjectGroup group = part.ParentGroup; |
6448 | if (group != null) // a bit paranoid, maybe | 6448 | if (group != null) // a bit paranoid, maybe |
6449 | { | 6449 | { |
6450 | SceneObjectPart rootPart = group.RootPart; | 6450 | SceneObjectPart rootPart = group.RootPart; |
6451 | if (rootPart != null) // again, better safe than sorry | 6451 | if (rootPart != null) // again, better safe than sorry |
6452 | { | 6452 | { |
6453 | SetRot(part, rootPart.RotationOffset * Rot2Quaternion(q)); | 6453 | SetRot(part, rootPart.RotationOffset * Rot2Quaternion(q)); |
6454 | } | 6454 | } |
6455 | } | 6455 | } |
6456 | } | 6456 | } |
6457 | 6457 | ||
6458 | break; | 6458 | break; |
6459 | 6459 | ||