diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index d026180..c3e3dfc 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -1392,8 +1392,14 @@ namespace OpenSim.Region.Environment.Scenes | |||
1392 | SetRootPartOwner(m_rootPart, cAgentID, cGroupID); | 1392 | SetRootPartOwner(m_rootPart, cAgentID, cGroupID); |
1393 | m_rootPart.ScheduleFullUpdate(); | 1393 | m_rootPart.ScheduleFullUpdate(); |
1394 | } | 1394 | } |
1395 | |||
1396 | List<SceneObjectPart> partList; | ||
1395 | 1397 | ||
1396 | List<SceneObjectPart> partList = new List<SceneObjectPart>(m_parts.Values); | 1398 | lock (m_parts) |
1399 | { | ||
1400 | partList = new List<SceneObjectPart>(m_parts.Values); | ||
1401 | } | ||
1402 | |||
1397 | partList.Sort(delegate(SceneObjectPart p1, SceneObjectPart p2) | 1403 | partList.Sort(delegate(SceneObjectPart p1, SceneObjectPart p2) |
1398 | { | 1404 | { |
1399 | return p1.LinkNum.CompareTo(p2.LinkNum); | 1405 | return p1.LinkNum.CompareTo(p2.LinkNum); |