From 9cb4ba9d6b8def715018aab7d69ab64b9cf875c0 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Mon, 14 Jul 2008 16:23:59 +0000
Subject: * For now, when loading an archive all the existing scene objects get
deleted by default
---
OpenSim/Region/Environment/Scenes/Scene.cs | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
(limited to 'OpenSim/Region/Environment/Scenes')
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
}
///
+ /// Delete every object from the scene
+ ///
+ public void DeleteAllSceneObjects()
+ {
+ lock (Entities)
+ {
+ ICollection entities = new List(Entities.Values);
+
+ foreach (EntityBase e in entities)
+ {
+ if (e is SceneObjectGroup)
+ DeleteSceneObject((SceneObjectGroup)e);
+ }
+ }
+ }
+
+ ///
/// Delete the given object from the scene.
///
///
--
cgit v1.1