diff options
author | Justin Clark-Casey (justincc) | 2011-09-01 01:37:35 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-09-01 01:37:35 +0100 |
commit | 63bf71023772ea9c54687c5006fcf6649eb1139f (patch) | |
tree | d4d21757512d104df22423beb6d96c1d9cc105c0 /OpenSim/Region/ScriptEngine/Shared | |
parent | Remove pointless cluttering SOP.ParentGroup != null checks. (diff) | |
download | opensim-SC-63bf71023772ea9c54687c5006fcf6649eb1139f.zip opensim-SC-63bf71023772ea9c54687c5006fcf6649eb1139f.tar.gz opensim-SC-63bf71023772ea9c54687c5006fcf6649eb1139f.tar.bz2 opensim-SC-63bf71023772ea9c54687c5006fcf6649eb1139f.tar.xz |
Fix issue with llGetTorque() where it would only ever return a zero vector.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 |
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 | ||