diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 3 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 9ae9b59..4ce2afd 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -12689,7 +12689,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
12689 | if ((data & KeyframeMotion.DataFormat.Rotation) != 0) | 12689 | if ((data & KeyframeMotion.DataFormat.Rotation) != 0) |
12690 | { | 12690 | { |
12691 | LSL_Types.Quaternion tempq = frames.GetQuaternionItem(idx++); | 12691 | LSL_Types.Quaternion tempq = frames.GetQuaternionItem(idx++); |
12692 | frame.Rotation = new Quaternion((float)tempq.x, (float)tempq.y, (float)tempq.z, (float)tempq.s); | 12692 | Quaternion q = new Quaternion((float)tempq.x, (float)tempq.y, (float)tempq.z, (float)tempq.s); |
12693 | q.Normalize(); | ||
12694 | frame.Rotation = q; | ||
12693 | } | 12695 | } |
12694 | 12696 | ||
12695 | float tempf = (float)frames.GetLSLFloatItem(idx++); | 12697 | float tempf = (float)frames.GetLSLFloatItem(idx++); |