From 765bd02a486ee57e1594ca95653d2f4367b0900b Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 9 Aug 2007 19:30:52 +0000 Subject: SceneObjects should now (hopefully) call datastore.StoreObject(). --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 5893988..78dd69c 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -119,7 +119,7 @@ namespace OpenSim.Region.Environment.Scenes SceneObjectPart newPart = new SceneObjectPart(m_regionHandle, this, ownerID, localID, shape, pos, rootOffset); this.m_parts.Add(newPart.UUID, newPart); this.SetPartAsRoot(newPart); - + m_scene.EventManager.OnBackup += this.ProcessBackup; } @@ -311,7 +311,15 @@ namespace OpenSim.Region.Environment.Scenes this.OnPrimCountTainted(); } } - + + /// + /// Processes backup + /// + /// + public void ProcessBackup(OpenSim.Region.Interfaces.IRegionDataStore datastore) + { + datastore.StoreObject(this); + } /// /// /// -- cgit v1.1