diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 33e3e5d..240d33c 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1819,7 +1819,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1819 | { | 1819 | { |
1820 | m_log.ErrorFormat( | 1820 | m_log.ErrorFormat( |
1821 | "[SCENE]: Found a SceneObjectGroup with m_rootPart == null and {0} children", | 1821 | "[SCENE]: Found a SceneObjectGroup with m_rootPart == null and {0} children", |
1822 | group.Children == null ? 0 : group.PrimCount); | 1822 | group.Parts == null ? 0 : group.PrimCount); |
1823 | } | 1823 | } |
1824 | 1824 | ||
1825 | AddRestoredSceneObject(group, true, true); | 1825 | AddRestoredSceneObject(group, true, true); |
@@ -2160,9 +2160,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2160 | group.RemoveScriptInstances(true); | 2160 | group.RemoveScriptInstances(true); |
2161 | } | 2161 | } |
2162 | 2162 | ||
2163 | List<SceneObjectPart> partList = null; | 2163 | SceneObjectPart[] partList = group.Parts; |
2164 | lock (group.Children) | ||
2165 | partList = new List<SceneObjectPart>(group.Children.Values); | ||
2166 | 2164 | ||
2167 | foreach (SceneObjectPart part in partList) | 2165 | foreach (SceneObjectPart part in partList) |
2168 | { | 2166 | { |
@@ -2540,11 +2538,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2540 | 2538 | ||
2541 | // Force allocation of new LocalId | 2539 | // Force allocation of new LocalId |
2542 | // | 2540 | // |
2543 | lock (sceneObject.Children) | 2541 | SceneObjectPart[] parts = sceneObject.Parts; |
2544 | { | 2542 | for (int i = 0; i < parts.Length; i++) |
2545 | foreach (SceneObjectPart p in sceneObject.Children.Values) | 2543 | parts[i].LocalId = 0; |
2546 | p.LocalId = 0; | ||
2547 | } | ||
2548 | 2544 | ||
2549 | if (sceneObject.IsAttachmentCheckFull()) // Attachment | 2545 | if (sceneObject.IsAttachmentCheckFull()) // Attachment |
2550 | { | 2546 | { |