From bcf74416a1677584c069e4e0b9acf9015d8c5b6c Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 19 Jul 2008 04:05:34 +0000 Subject: Fix prim link numbers (Mantis #1781) Implements additional unlink modes (unlink root prim from link set, some multi-set operations). Linking (single and mutiple) fully implemented. Consistent numbering of links while in world. Link/delink with predictable link numbering. Correct link numbers in LSL. Not all multi-set ops implemented. Link numbers still change when taken and re-rezzed. --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 63ec23c..edccbe5 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -674,12 +674,7 @@ namespace OpenSim.Region.Environment.Scenes public int LinkNum { get { return m_linkNum; } - set - { - m_linkNum = value; - TriggerScriptChangedEvent(Changed.LINK); - - } + set { m_linkNum = value; } } public byte ClickAction @@ -2250,7 +2245,8 @@ namespace OpenSim.Region.Environment.Scenes public void SetAvatarOnSitTarget(LLUUID avatarID) { m_sitTargetAvatar = avatarID; - TriggerScriptChangedEvent(Changed.LINK); + if(ParentGroup != null) + ParentGroup.TriggerScriptChangedEvent(Changed.LINK); } public void SetAxisRotation(int axis, int rotate) @@ -3294,4 +3290,4 @@ namespace OpenSim.Region.Environment.Scenes #endregion Public Methods } -} \ No newline at end of file +} -- cgit v1.1