diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index ad73f47..021b352 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2025,19 +2025,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2025 | 2025 | ||
2026 | Vector3 pos; | 2026 | Vector3 pos; |
2027 | 2027 | ||
2028 | if (part.ParentID == 0) | 2028 | if (!part.IsRoot) |
2029 | { | 2029 | { |
2030 | pos = part.AbsolutePosition; | 2030 | pos = part.OffsetPosition; |
2031 | } | 2031 | } |
2032 | else | 2032 | else |
2033 | { | 2033 | { |
2034 | if (part.IsRoot) | 2034 | if (part.ParentGroup.IsAttachment) |
2035 | { | 2035 | { |
2036 | pos = part.AttachedPos; | 2036 | pos = part.AttachedPos; |
2037 | } | 2037 | } |
2038 | else | 2038 | else |
2039 | { | 2039 | { |
2040 | pos = part.OffsetPosition; | 2040 | pos = part.AbsolutePosition; |
2041 | } | 2041 | } |
2042 | } | 2042 | } |
2043 | 2043 | ||