diff options
author | Justin Clark-Casey (justincc) | 2013-03-14 22:35:41 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-03-14 22:35:41 +0000 |
commit | b23009e480cee996d2d2808b22ea4dfd76a45e03 (patch) | |
tree | 300187518f9ff97bfff553775a8803732ef9cde3 /OpenSim | |
parent | refactor: use LSL_Rotation(Quaternion) constructor in lLGetRootRotation() (diff) | |
download | opensim-SC-b23009e480cee996d2d2808b22ea4dfd76a45e03.zip opensim-SC-b23009e480cee996d2d2808b22ea4dfd76a45e03.tar.gz opensim-SC-b23009e480cee996d2d2808b22ea4dfd76a45e03.tar.bz2 opensim-SC-b23009e480cee996d2d2808b22ea4dfd76a45e03.tar.xz |
Fix minor race condition in llGetGeometricCenter() if this was changing whilst the function was called.
Diffstat (limited to 'OpenSim')
-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 19eec71..deaaa8a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -7967,7 +7967,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7967 | 7967 | ||
7968 | public LSL_Vector llGetGeometricCenter() | 7968 | public LSL_Vector llGetGeometricCenter() |
7969 | { | 7969 | { |
7970 | return new LSL_Vector(m_host.GetGeometricCenter().X, m_host.GetGeometricCenter().Y, m_host.GetGeometricCenter().Z); | 7970 | return new LSL_Vector(m_host.GetGeometricCenter()); |
7971 | } | 7971 | } |
7972 | 7972 | ||
7973 | public LSL_List llGetPrimitiveParams(LSL_List rules) | 7973 | public LSL_List llGetPrimitiveParams(LSL_List rules) |