aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 46fbcd3..6d4de90 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2121,7 +2121,7 @@ namespace OpenSim.Region.Framework.Scenes
2121 } 2121 }
2122 2122
2123 /// <summary> 2123 /// <summary>
2124 /// Delete every object from the scene 2124 /// Delete every object from the scene. This does not include attachments worn by avatars.
2125 /// </summary> 2125 /// </summary>
2126 public void DeleteAllSceneObjects() 2126 public void DeleteAllSceneObjects()
2127 { 2127 {
@@ -2132,7 +2132,11 @@ namespace OpenSim.Region.Framework.Scenes
2132 foreach (EntityBase e in entities) 2132 foreach (EntityBase e in entities)
2133 { 2133 {
2134 if (e is SceneObjectGroup) 2134 if (e is SceneObjectGroup)
2135 DeleteSceneObject((SceneObjectGroup)e, false); 2135 {
2136 SceneObjectGroup sog = (SceneObjectGroup)e;
2137 if (!sog.IsAttachment)
2138 DeleteSceneObject((SceneObjectGroup)e, false);
2139 }
2136 } 2140 }
2137 } 2141 }
2138 } 2142 }