diff options
author | Melanie | 2012-02-09 00:19:37 +0000 |
---|---|---|
committer | Melanie | 2012-02-09 00:19:37 +0000 |
commit | 7c888f6af11b5f1d2e41add5ecadae4aa4b2dfa1 (patch) | |
tree | 14c6090f09e2d6bd400fbdaa2fe16299323f63a9 /OpenSim/Region/Framework/Scenes/SceneGraph.cs | |
parent | Push more NPC stuff into threads (diff) | |
parent | minor: put in commented out logging statements for future reuse (diff) | |
download | opensim-SC_OLD-7c888f6af11b5f1d2e41add5ecadae4aa4b2dfa1.zip opensim-SC_OLD-7c888f6af11b5f1d2e41add5ecadae4aa4b2dfa1.tar.gz opensim-SC_OLD-7c888f6af11b5f1d2e41add5ecadae4aa4b2dfa1.tar.bz2 opensim-SC_OLD-7c888f6af11b5f1d2e41add5ecadae4aa4b2dfa1.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/Framework/Scenes/SceneGraph.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index 17563bd..6dd42dd 100644 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -1751,6 +1751,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1751 | { | 1751 | { |
1752 | SceneObjectGroup child = children[i].ParentGroup; | 1752 | SceneObjectGroup child = children[i].ParentGroup; |
1753 | 1753 | ||
1754 | // Don't try and add a group to itself - this will only cause severe problems later on. | ||
1755 | if (child == parentGroup) | ||
1756 | continue; | ||
1757 | |||
1754 | // Make sure no child prim is set for sale | 1758 | // Make sure no child prim is set for sale |
1755 | // So that, on delink, no prims are unwittingly | 1759 | // So that, on delink, no prims are unwittingly |
1756 | // left for sale and sold off | 1760 | // left for sale and sold off |
@@ -1777,8 +1781,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
1777 | 1781 | ||
1778 | // We need to explicitly resend the newly link prim's object properties since no other actions | 1782 | // We need to explicitly resend the newly link prim's object properties since no other actions |
1779 | // occur on link to invoke this elsewhere (such as object selection) | 1783 | // occur on link to invoke this elsewhere (such as object selection) |
1780 | parentGroup.RootPart.CreateSelected = true; | 1784 | if (childGroups.Count > 0) |
1781 | parentGroup.TriggerScriptChangedEvent(Changed.LINK); | 1785 | { |
1786 | parentGroup.RootPart.CreateSelected = true; | ||
1787 | parentGroup.TriggerScriptChangedEvent(Changed.LINK); | ||
1788 | parentGroup.HasGroupChanged = true; | ||
1789 | parentGroup.ScheduleGroupForFullUpdate(); | ||
1790 | } | ||
1782 | } | 1791 | } |
1783 | finally | 1792 | finally |
1784 | { | 1793 | { |