aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 24fc484..193677e 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -598,6 +598,17 @@ namespace OpenSim.Region.Environment.Scenes
598 SetPartAsNonRoot(newPart); 598 SetPartAsNonRoot(newPart);
599 } 599 }
600 600
601
602 public void GenerateNewIDs()
603 {
604 List<SceneObjectPart> partsList = new List<SceneObjectPart>(m_parts.Values);
605 m_parts.Clear();
606 foreach (SceneObjectPart part in partsList)
607 {
608 part.UUID = LLUUID.Random();
609 m_parts.Add(part.UUID, part);
610 }
611 }
601 /// <summary> 612 /// <summary>
602 /// 613 ///
603 /// </summary> 614 /// </summary>