Debug... ( restored TriggerOnSceneObjectPreSave)

avinationmerge
UbitUmarov 2014-10-26 11:28:24 +00:00
parent cfc8de096b
commit b43ce909aa
1 changed files with 10 additions and 12 deletions

View File

@ -2187,20 +2187,16 @@ namespace OpenSim.Region.Framework.Scenes
backup_group.RootPart.ParticleSystem = RootPart.ParticleSystem;
HasGroupChanged = false;
HasGroupChangedDueToDelink = false;
// DEBUG
// m_scene.EventManager.TriggerOnSceneObjectPreSave(backup_group, this);
/*
backup_group.ForEachPart(delegate(SceneObjectPart part)
// debug
if (RootPart.KeyframeMotion != null)
{
if (part.KeyframeMotion != null)
{
part.KeyframeMotion = KeyframeMotion.FromData(backup_group, part.KeyframeMotion.Serialize());
// part.KeyframeMotion.UpdateSceneObject(this);
m_log.DebugFormat(
"[BACKUP]: test prim {0} {1}, intransit = {2}",
Name, UUID, inTransit);
}
});
*/
m_scene.EventManager.TriggerOnSceneObjectPreSave(backup_group, this);
datastore.StoreObject(backup_group, m_scene.RegionInfo.RegionID);
backup_group.ForEachPart(delegate(SceneObjectPart part)
@ -2262,6 +2258,8 @@ namespace OpenSim.Region.Framework.Scenes
dupe.m_isBackedUp = false;
dupe.m_parts = new MapAndArray<OpenMetaverse.UUID, SceneObjectPart>();
dupe.inTransit = inTransit; // this shouldn't be needed TEST
// new group as no sitting avatars
dupe.m_linkedAvatars = new List<ScenePresence>();
dupe.m_sittingAvatars = new List<UUID>();