SceneObjects should now (hopefully) call datastore.StoreObject().

afrisby
MW 2007-08-09 19:30:52 +00:00
parent 4059ac6e7d
commit 765bd02a48
2 changed files with 12 additions and 2 deletions

View File

@ -119,7 +119,7 @@ namespace OpenSim.Region.Environment.Scenes
SceneObjectPart newPart = new SceneObjectPart(m_regionHandle, this, ownerID, localID, shape, pos, rootOffset); SceneObjectPart newPart = new SceneObjectPart(m_regionHandle, this, ownerID, localID, shape, pos, rootOffset);
this.m_parts.Add(newPart.UUID, newPart); this.m_parts.Add(newPart.UUID, newPart);
this.SetPartAsRoot(newPart); this.SetPartAsRoot(newPart);
m_scene.EventManager.OnBackup += this.ProcessBackup;
} }
@ -313,6 +313,14 @@ namespace OpenSim.Region.Environment.Scenes
} }
/// <summary> /// <summary>
/// Processes backup
/// </summary>
/// <param name="datastore"></param>
public void ProcessBackup(OpenSim.Region.Interfaces.IRegionDataStore datastore)
{
datastore.StoreObject(this);
}
/// <summary>
/// ///
/// </summary> /// </summary>
/// <param name="offset"></param> /// <param name="offset"></param>

View File

@ -211,6 +211,8 @@ namespace OpenSim.Region.Environment.Scenes
this.AngularVelocity = new LLVector3(0, 0, 0); this.AngularVelocity = new LLVector3(0, 0, 0);
this.Acceleration = 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 //temporary code just so the m_flags field doesn't give a compiler warning
if (m_flags == LLObject.ObjectFlags.AllowInventoryDrop) if (m_flags == LLObject.ObjectFlags.AllowInventoryDrop)
{ {