aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-04-06 23:36:13 +0100
committerJustin Clark-Casey (justincc)2012-04-06 23:36:13 +0100
commit4a58d4c5a4e7e405448113a0efd5c34349eed7b5 (patch)
tree26de1dd89275fdeb53eeb3d4a6b6997bd0f106c2 /OpenSim/Region/ScriptEngine/Shared/Api
parentFix llGetLinkPrimParams for PRIM_POS_LOCAL for child prims whether in scene o... (diff)
downloadopensim-SC-4a58d4c5a4e7e405448113a0efd5c34349eed7b5.zip
opensim-SC-4a58d4c5a4e7e405448113a0efd5c34349eed7b5.tar.gz
opensim-SC-4a58d4c5a4e7e405448113a0efd5c34349eed7b5.tar.bz2
opensim-SC-4a58d4c5a4e7e405448113a0efd5c34349eed7b5.tar.xz
refactor: Use clearer part.ParentGroup.IsAttachment in LSL_Api.GetPartLocalPos()
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs8
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