diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 220558b..0f7bd00 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -501,9 +501,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
501 | foreach (SceneObjectPart part in m_parts.Values) | 501 | foreach (SceneObjectPart part in m_parts.Values) |
502 | { | 502 | { |
503 | if (Object.ReferenceEquals(part, m_rootPart)) | 503 | if (Object.ReferenceEquals(part, m_rootPart)) |
504 | { | ||
504 | continue; | 505 | continue; |
505 | if (part.LocalId==0) | 506 | } |
507 | |||
508 | if (part.LocalId == 0) | ||
509 | { | ||
506 | part.LocalId = m_scene.AllocateLocalId(); | 510 | part.LocalId = m_scene.AllocateLocalId(); |
511 | } | ||
512 | |||
507 | part.ParentID = m_rootPart.LocalId; | 513 | part.ParentID = m_rootPart.LocalId; |
508 | //m_log.DebugFormat("[SCENE]: Given local id {0} to part {1}, linknum {2}, parent {3} {4}", part.LocalId, part.UUID, part.LinkNum, part.ParentID, part.ParentUUID); | 514 | //m_log.DebugFormat("[SCENE]: Given local id {0} to part {1}, linknum {2}, parent {3} {4}", part.LocalId, part.UUID, part.LinkNum, part.ParentID, part.ParentUUID); |
509 | } | 515 | } |