diff options
author | Justin Clark-Casey (justincc) | 2013-03-14 21:57:43 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-03-14 21:57:43 +0000 |
commit | f84072827384f7ea7c50f77eab23c141cae6cd9e (patch) | |
tree | 6ee1194e56fdca5919ab1a0900bde989b4b6cecd /OpenSim | |
parent | Fix sensors, llGetRootRotation(), llGet*Param() and other functions to use th... (diff) | |
download | opensim-SC_OLD-f84072827384f7ea7c50f77eab23c141cae6cd9e.zip opensim-SC_OLD-f84072827384f7ea7c50f77eab23c141cae6cd9e.tar.gz opensim-SC_OLD-f84072827384f7ea7c50f77eab23c141cae6cd9e.tar.bz2 opensim-SC_OLD-f84072827384f7ea7c50f77eab23c141cae6cd9e.tar.xz |
refactor: use cleaner LSL_Rotation quaternion constructor in LSL_Api.GetPartRot()
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index d88e416..854169b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2181,10 +2181,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2181 | } | 2181 | } |
2182 | else | 2182 | else |
2183 | q = part.ParentGroup.GroupRotation; // just the group rotation | 2183 | q = part.ParentGroup.GroupRotation; // just the group rotation |
2184 | return new LSL_Rotation(q.X, q.Y, q.Z, q.W); | 2184 | |
2185 | return new LSL_Rotation(q); | ||
2185 | } | 2186 | } |
2186 | q = part.GetWorldRotation(); | 2187 | |
2187 | return new LSL_Rotation(q.X, q.Y, q.Z, q.W); | 2188 | return new LSL_Rotation(part.GetWorldRotation()); |
2188 | } | 2189 | } |
2189 | 2190 | ||
2190 | public LSL_Rotation llGetLocalRot() | 2191 | public LSL_Rotation llGetLocalRot() |