diff options
-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 dd2d2cc..f8ca047 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1908,7 +1908,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1908 | } | 1908 | } |
1909 | 1909 | ||
1910 | /// <summary> | 1910 | /// <summary> |
1911 | /// Delete every object from the scene | 1911 | /// Delete every object from the scene. This does not include attachments worn by avatars. |
1912 | /// </summary> | 1912 | /// </summary> |
1913 | public void DeleteAllSceneObjects() | 1913 | public void DeleteAllSceneObjects() |
1914 | { | 1914 | { |
@@ -1919,7 +1919,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
1919 | foreach (EntityBase e in entities) | 1919 | foreach (EntityBase e in entities) |
1920 | { | 1920 | { |
1921 | if (e is SceneObjectGroup) | 1921 | if (e is SceneObjectGroup) |
1922 | DeleteSceneObject((SceneObjectGroup)e, false); | 1922 | { |
1923 | SceneObjectGroup sog = (SceneObjectGroup)e; | ||
1924 | if (!sog.IsAttachment) | ||
1925 | DeleteSceneObject((SceneObjectGroup)e, false); | ||
1926 | } | ||
1923 | } | 1927 | } |
1924 | } | 1928 | } |
1925 | } | 1929 | } |