aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-09-01 01:37:35 +0100
committerJustin Clark-Casey (justincc)2011-09-01 01:37:35 +0100
commit63bf71023772ea9c54687c5006fcf6649eb1139f (patch)
treed4d21757512d104df22423beb6d96c1d9cc105c0 /OpenSim/Region/ScriptEngine
parentRemove pointless cluttering SOP.ParentGroup != null checks. (diff)
downloadopensim-SC_OLD-63bf71023772ea9c54687c5006fcf6649eb1139f.zip
opensim-SC_OLD-63bf71023772ea9c54687c5006fcf6649eb1139f.tar.gz
opensim-SC_OLD-63bf71023772ea9c54687c5006fcf6649eb1139f.tar.bz2
opensim-SC_OLD-63bf71023772ea9c54687c5006fcf6649eb1139f.tar.xz
Fix issue with llGetTorque() where it would only ever return a zero vector.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs2
1 files changed, 1 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 dff7269..8d95546 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2202,7 +2202,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2202 public LSL_Vector llGetTorque() 2202 public LSL_Vector llGetTorque()
2203 { 2203 {
2204 m_host.AddScriptLPS(1); 2204 m_host.AddScriptLPS(1);
2205 Vector3 torque = m_host.GetTorque(); 2205 Vector3 torque = m_host.ParentGroup.GetTorque();
2206 return new LSL_Vector(torque.X,torque.Y,torque.Z); 2206 return new LSL_Vector(torque.X,torque.Y,torque.Z);
2207 } 2207 }
2208 2208