diff options
author | Jeff Ames | 2009-03-07 02:39:27 +0000 |
---|---|---|
committer | Jeff Ames | 2009-03-07 02:39:27 +0000 |
commit | 03076b0d33558c85b3157f0f3702ea5a0f65af8b (patch) | |
tree | 93e200eadc5ab7916e635a082a032808af95ea18 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Add copyright headers. (diff) | |
download | opensim-SC_OLD-03076b0d33558c85b3157f0f3702ea5a0f65af8b.zip opensim-SC_OLD-03076b0d33558c85b3157f0f3702ea5a0f65af8b.tar.gz opensim-SC_OLD-03076b0d33558c85b3157f0f3702ea5a0f65af8b.tar.bz2 opensim-SC_OLD-03076b0d33558c85b3157f0f3702ea5a0f65af8b.tar.xz |
Update svn properties, minor formatting cleanup.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-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 | ||