diff options
author | Justin Clark-Casey (justincc) | 2013-03-14 22:33:44 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-03-14 22:33:44 +0000 |
commit | dd6f1fc637f0efb44e0aadf7424314993f100a32 (patch) | |
tree | 18b1589db3a18b0f0eadb32d5c7c51ac6b57b21f | |
parent | Fix minor race conditions in detecting current parcel for llAddToLandPassList... (diff) | |
download | opensim-SC_OLD-dd6f1fc637f0efb44e0aadf7424314993f100a32.zip opensim-SC_OLD-dd6f1fc637f0efb44e0aadf7424314993f100a32.tar.gz opensim-SC_OLD-dd6f1fc637f0efb44e0aadf7424314993f100a32.tar.bz2 opensim-SC_OLD-dd6f1fc637f0efb44e0aadf7424314993f100a32.tar.xz |
Fix minor race condition in llGetRootPosition() where inconsistent results could be returned for moving prims
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index f95ecb4..559744f 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -7829,8 +7829,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7829 | public LSL_Vector llGetRootPosition() | 7829 | public LSL_Vector llGetRootPosition() |
7830 | { | 7830 | { |
7831 | m_host.AddScriptLPS(1); | 7831 | m_host.AddScriptLPS(1); |
7832 | return new LSL_Vector(m_host.ParentGroup.AbsolutePosition.X, m_host.ParentGroup.AbsolutePosition.Y, | 7832 | |
7833 | m_host.ParentGroup.AbsolutePosition.Z); | 7833 | return new LSL_Vector(m_host.ParentGroup.AbsolutePosition); |
7834 | } | 7834 | } |
7835 | 7835 | ||
7836 | /// <summary> | 7836 | /// <summary> |