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 1a672e8..8b30b58 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -1818,8 +1818,19 @@ namespace OpenSim.Region.Environment.Scenes
1818 } 1818 }
1819 } 1819 }
1820 1820
1821 /// <summary>
1822 /// Delete all the parts in this group.
1823 /// </summary>
1821 public void DeleteParts() 1824 public void DeleteParts()
1822 { 1825 {
1826 lock (m_parts)
1827 {
1828 foreach (SceneObjectPart part in m_parts.Values)
1829 {
1830 part.StopScripts();
1831 }
1832 }
1833
1823 m_rootPart = null; 1834 m_rootPart = null;
1824 m_parts.Clear(); 1835 m_parts.Clear();
1825 } 1836 }