From eb63b9bbc10ee9d794c273dc01111de8ce8c8a0c Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Sun, 13 Jul 2008 00:18:29 +0000
Subject: * Actually persist restored archives to the database - wasn't
actually doing this before (doh) * Not quite perfect yet
---
.../Environment/Scenes/SceneObjectGroup.Inventory.cs | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
(limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs')
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
index 799cb41..8feb852 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
@@ -39,6 +39,20 @@ namespace OpenSim.Region.Environment.Scenes
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
///
+ /// Force all task inventories of prims in the scene object to persist
+ ///
+ public void ForceInventoryPersistence()
+ {
+ lock (m_parts)
+ {
+ foreach (SceneObjectPart part in m_parts.Values)
+ {
+ part.ForceInventoryPersistence();
+ }
+ }
+ }
+
+ ///
/// Start the scripts contained in all the prims in this group.
///
public void CreateScriptInstances(int startParam, bool postOnRez)
@@ -53,6 +67,9 @@ namespace OpenSim.Region.Environment.Scenes
}
}
+ ///
+ /// Stop the scripts contained in all the prims in this group
+ ///
public void RemoveScriptInstances()
{
lock (m_parts)
--
cgit v1.1