aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-04-06 22:41:35 +0100
committerJustin Clark-Casey (justincc)2012-04-06 22:41:35 +0100
commit3af1cd65f91db87778096196bfd985dc48c72d87 (patch)
treeca8e542edc80688286e0aa9ca8b7326c1af06add /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-3af1cd65f91db87778096196bfd985dc48c72d87.zip
opensim-SC-3af1cd65f91db87778096196bfd985dc48c72d87.tar.gz
opensim-SC-3af1cd65f91db87778096196bfd985dc48c72d87.tar.bz2
opensim-SC-3af1cd65f91db87778096196bfd985dc48c72d87.tar.xz
Fix llGetLinkPrimParams for PRIM_POS_LOCAL for child prims whether in scene or attachments.
Return relative position to root prim rather than 0,0,0. Should fix same issue with llGetLocalPos() http://opensimulator.org/mantis/view.php?id=5951
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 9e65f5d..5ec0ed9 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -125,12 +125,14 @@ namespace OpenSim.Region.Framework.Scenes
125 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 125 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
126 126
127 /// <value> 127 /// <value>
128 /// Is this sop a root part? 128 /// Is this a root part?
129 /// </value> 129 /// </value>
130 130 /// <remarks>
131 /// This will return true even if the whole object is attached to an avatar.
132 /// </remarks>
131 public bool IsRoot 133 public bool IsRoot
132 { 134 {
133 get { return ParentGroup.RootPart == this; } 135 get { return ParentGroup.RootPart == this; }
134 } 136 }
135 137
136 #region Fields 138 #region Fields
@@ -1112,6 +1114,14 @@ namespace OpenSim.Region.Framework.Scenes
1112 } 1114 }
1113 } 1115 }
1114 1116
1117 /// <summary>
1118 /// The parent ID of this part.
1119 /// </summary>
1120 /// <remarks>
1121 /// If this is a root part which is not attached to an avatar then the value will be 0.
1122 /// If this is a root part which is attached to an avatar then the value is the local id of that avatar.
1123 /// If this is a child part then the value is the local ID of the root part.
1124 /// </remarks>
1115 public uint ParentID 1125 public uint ParentID
1116 { 1126 {
1117 get { return _parentID; } 1127 get { return _parentID; }