aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-03-14 22:00:04 +0000
committerJustin Clark-Casey (justincc)2013-03-14 22:00:04 +0000
commitc3e081a5ca165b197fcb5c6e407f0174931c8f7c (patch)
tree9b7ba3e66a1e6060837f0a246cdf430495166345 /OpenSim
parentrefactor: use cleaner LSL_Rotation quaternion constructor in LSL_Api.GetPartR... (diff)
downloadopensim-SC_OLD-c3e081a5ca165b197fcb5c6e407f0174931c8f7c.zip
opensim-SC_OLD-c3e081a5ca165b197fcb5c6e407f0174931c8f7c.tar.gz
opensim-SC_OLD-c3e081a5ca165b197fcb5c6e407f0174931c8f7c.tar.bz2
opensim-SC_OLD-c3e081a5ca165b197fcb5c6e407f0174931c8f7c.tar.xz
Fix minor race condition in llGetLocalRot() where inconsistent results could be returned if the prim was rotating during the call
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs3
1 files changed, 2 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 854169b..c9d0d91 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2191,7 +2191,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2191 public LSL_Rotation llGetLocalRot() 2191 public LSL_Rotation llGetLocalRot()
2192 { 2192 {
2193 m_host.AddScriptLPS(1); 2193 m_host.AddScriptLPS(1);
2194 return new LSL_Rotation(m_host.RotationOffset.X, m_host.RotationOffset.Y, m_host.RotationOffset.Z, m_host.RotationOffset.W); 2194
2195 return new LSL_Rotation(m_host.RotationOffset);
2195 } 2196 }
2196 2197
2197 public void llSetForce(LSL_Vector force, int local) 2198 public void llSetForce(LSL_Vector force, int local)