diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 0b7f2a4..3327fea 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -572,9 +572,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
572 | /// <param name="part"></param> | 572 | /// <param name="part"></param> |
573 | public void CopyRootPart(SceneObjectPart part, LLUUID cAgentID, LLUUID cGroupID) | 573 | public void CopyRootPart(SceneObjectPart part, LLUUID cAgentID, LLUUID cGroupID) |
574 | { | 574 | { |
575 | SceneObjectPart newPart = part.Copy(m_scene.PrimIDAllocate(), OwnerID, GroupID); | 575 | SceneObjectPart newPart = part.Copy(m_scene.PrimIDAllocate(), OwnerID, GroupID, m_parts.Count); |
576 | newPart.SetParent(this); | 576 | newPart.SetParent(this); |
577 | newPart.LinkNum = m_parts.Count; | ||
578 | m_parts.Add(newPart.UUID, newPart); | 577 | m_parts.Add(newPart.UUID, newPart); |
579 | SetPartAsRoot(newPart); | 578 | SetPartAsRoot(newPart); |
580 | } | 579 | } |
@@ -602,9 +601,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
602 | /// <param name="part"></param> | 601 | /// <param name="part"></param> |
603 | public void CopyPart(SceneObjectPart part, LLUUID cAgentID, LLUUID cGroupID) | 602 | public void CopyPart(SceneObjectPart part, LLUUID cAgentID, LLUUID cGroupID) |
604 | { | 603 | { |
605 | SceneObjectPart newPart = part.Copy(m_scene.PrimIDAllocate(), OwnerID, GroupID); | 604 | SceneObjectPart newPart = part.Copy(m_scene.PrimIDAllocate(), OwnerID, GroupID, m_parts.Count); |
606 | newPart.SetParent(this); | 605 | newPart.SetParent(this); |
607 | newPart.LinkNum = m_parts.Count; | ||
608 | m_parts.Add(newPart.UUID, newPart); | 606 | m_parts.Add(newPart.UUID, newPart); |
609 | SetPartAsNonRoot(newPart); | 607 | SetPartAsNonRoot(newPart); |
610 | } | 608 | } |