SceneObjects should now (hopefully) call datastore.StoreObject().
parent
4059ac6e7d
commit
765bd02a48
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -311,7 +311,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
this.OnPrimCountTainted();
|
this.OnPrimCountTainted();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Processes backup
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datastore"></param>
|
||||||
|
public void ProcessBackup(OpenSim.Region.Interfaces.IRegionDataStore datastore)
|
||||||
|
{
|
||||||
|
datastore.StoreObject(this);
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue