aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index a6a5264..ad9646f 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1684,6 +1684,23 @@ namespace OpenSim.Region.Environment.Scenes
1684 } 1684 }
1685 1685
1686 /// <summary> 1686 /// <summary>
1687 /// Delete every object from the scene
1688 /// </summary>
1689 public void DeleteAllSceneObjects()
1690 {
1691 lock (Entities)
1692 {
1693 ICollection<EntityBase> entities = new List<EntityBase>(Entities.Values);
1694
1695 foreach (EntityBase e in entities)
1696 {
1697 if (e is SceneObjectGroup)
1698 DeleteSceneObject((SceneObjectGroup)e);
1699 }
1700 }
1701 }
1702
1703 /// <summary>
1687 /// Delete the given object from the scene. 1704 /// Delete the given object from the scene.
1688 /// </summary> 1705 /// </summary>
1689 /// <param name="group"></param> 1706 /// <param name="group"></param>