aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
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 5b6f23a..519dd2b 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -347,7 +347,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
347 // convert a LSL_Rotation to a Quaternion 347 // convert a LSL_Rotation to a Quaternion
348 private Quaternion Rot2Quaternion(LSL_Rotation r) 348 private Quaternion Rot2Quaternion(LSL_Rotation r)
349 { 349 {
350 return new Quaternion((float)r.x, (float)r.y, (float)r.z, (float)r.s); 350 Quaternion q = new Quaternion((float)r.x, (float)r.y, (float)r.z, (float)r.s);
351 q.Normalize();
352 return q;
351 } 353 }
352 354
353 //These are the implementations of the various ll-functions used by the LSL scripts. 355 //These are the implementations of the various ll-functions used by the LSL scripts.