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 ++++++++++--
OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 2 ++
2 files changed, 12 insertions(+), 2 deletions(-)
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);
+ }
///
///
///
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index c711150..5e62082 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -211,6 +211,8 @@ namespace OpenSim.Region.Environment.Scenes
this.AngularVelocity = new LLVector3(0, 0, 0);
this.Acceleration = new LLVector3(0, 0, 0);
+
+
//temporary code just so the m_flags field doesn't give a compiler warning
if (m_flags == LLObject.ObjectFlags.AllowInventoryDrop)
{
--
cgit v1.1