Make AddRestoredSceneObject reset the IsDeleted flag so we can take an

object out of the scene and then put it back in.
avinationmerge
Melanie Thielker 2010-09-08 00:49:32 +02:00
parent 8ab4b277c1
commit 7a1b1dd419
1 changed files with 4 additions and 1 deletions

View File

@ -2003,7 +2003,10 @@ namespace OpenSim.Region.Framework.Scenes
public bool AddRestoredSceneObject(
SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates)
{
return m_sceneGraph.AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, sendClientUpdates);
bool result = m_sceneGraph.AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, sendClientUpdates);
if (result)
sceneObject.IsDeleted = false;
return result;
}
/// <summary>