diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index f4ff902..8a65b06 100644 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -1962,20 +1962,17 @@ namespace OpenSim.Region.Framework.Scenes | |||
1962 | // slated for unlink, we need to do this | 1962 | // slated for unlink, we need to do this |
1963 | // Unlink the remaining set | 1963 | // Unlink the remaining set |
1964 | // | 1964 | // |
1965 | bool sendEventsToRemainder = true; | 1965 | bool sendEventsToRemainder = false; |
1966 | if (numChildren > 1) | 1966 | if (numChildren == 2) // only one child prim no re-link needed |
1967 | sendEventsToRemainder = false; | 1967 | sendEventsToRemainder = true; |
1968 | 1968 | ||
1969 | foreach (SceneObjectPart p in newSet) | 1969 | foreach (SceneObjectPart p in newSet) |
1970 | { | 1970 | { |
1971 | if (p != group.RootPart) | 1971 | if (p != group.RootPart) |
1972 | { | 1972 | { |
1973 | group.DelinkFromGroup(p, sendEventsToRemainder); | 1973 | group.DelinkFromGroup(p, sendEventsToRemainder); |
1974 | if (numChildren > 2) | 1974 | if (sendEventsToRemainder) // finish single child prim now |
1975 | { | 1975 | { |
1976 | } | ||
1977 | else | ||
1978 | { | ||
1979 | p.ParentGroup.HasGroupChanged = true; | 1976 | p.ParentGroup.HasGroupChanged = true; |
1980 | p.ParentGroup.ScheduleGroupForFullUpdate(); | 1977 | p.ParentGroup.ScheduleGroupForFullUpdate(); |
1981 | } | 1978 | } |
@@ -2008,8 +2005,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
2008 | newChild.ClearUpdateSchedule(); | 2005 | newChild.ClearUpdateSchedule(); |
2009 | 2006 | ||
2010 | LinkObjects(newRoot, newSet); | 2007 | LinkObjects(newRoot, newSet); |
2011 | if (!affectedGroups.Contains(newRoot.ParentGroup)) | 2008 | // if (!affectedGroups.Contains(newRoot.ParentGroup)) |
2012 | affectedGroups.Add(newRoot.ParentGroup); | 2009 | // affectedGroups.Add(newRoot.ParentGroup); |
2013 | } | 2010 | } |
2014 | } | 2011 | } |
2015 | 2012 | ||