diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index db21bf9..23db482 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1023,7 +1023,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1023 | { | 1023 | { |
1024 | if (ent is SceneObjectGroup) | 1024 | if (ent is SceneObjectGroup) |
1025 | { | 1025 | { |
1026 | ((SceneObjectGroup) ent).RemoveScriptInstances(); | 1026 | ((SceneObjectGroup) ent).RemoveScriptInstances(false); |
1027 | } | 1027 | } |
1028 | } | 1028 | } |
1029 | } | 1029 | } |
@@ -1911,13 +1911,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
1911 | /// <param name="silent">Suppress broadcasting changes to other clients.</param> | 1911 | /// <param name="silent">Suppress broadcasting changes to other clients.</param> |
1912 | public void DeleteSceneObject(SceneObjectGroup group, bool silent) | 1912 | public void DeleteSceneObject(SceneObjectGroup group, bool silent) |
1913 | { | 1913 | { |
1914 | // m_log.DebugFormat("[SCENE]: Deleting scene object {0} {1}", group.Name, group.UUID); | ||
1915 | |||
1914 | //SceneObjectPart rootPart = group.GetChildPart(group.UUID); | 1916 | //SceneObjectPart rootPart = group.GetChildPart(group.UUID); |
1915 | 1917 | ||
1916 | // Serialise calls to RemoveScriptInstances to avoid | 1918 | // Serialise calls to RemoveScriptInstances to avoid |
1917 | // deadlocking on m_parts inside SceneObjectGroup | 1919 | // deadlocking on m_parts inside SceneObjectGroup |
1918 | lock (m_deleting_scene_object) | 1920 | lock (m_deleting_scene_object) |
1919 | { | 1921 | { |
1920 | group.RemoveScriptInstances(); | 1922 | group.RemoveScriptInstances(true); |
1921 | } | 1923 | } |
1922 | 1924 | ||
1923 | foreach (SceneObjectPart part in group.Children.Values) | 1925 | foreach (SceneObjectPart part in group.Children.Values) |
@@ -1945,6 +1947,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1945 | } | 1947 | } |
1946 | 1948 | ||
1947 | group.DeleteGroup(silent); | 1949 | group.DeleteGroup(silent); |
1950 | |||
1951 | // m_log.DebugFormat("[SCENE]: Exit DeleteSceneObject() for {0} {1}", group.Name, group.UUID); | ||
1948 | } | 1952 | } |
1949 | 1953 | ||
1950 | /// <summary> | 1954 | /// <summary> |