aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2012-07-11 23:32:12 +0200
committerMelanie2012-07-11 23:32:12 +0200
commit59cd0a2419266f190375074e2bede0d9a10de370 (patch)
treea31769de8633e99831c2c1079f39722339c032f7
parent be paranoic (?) (diff)
downloadopensim-SC_OLD-59cd0a2419266f190375074e2bede0d9a10de370.zip
opensim-SC_OLD-59cd0a2419266f190375074e2bede0d9a10de370.tar.gz
opensim-SC_OLD-59cd0a2419266f190375074e2bede0d9a10de370.tar.bz2
opensim-SC_OLD-59cd0a2419266f190375074e2bede0d9a10de370.tar.xz
Change order of operations on backup to ensure keyframe motions are backed
up properly
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 96eeec4..1734ab7 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -2039,8 +2039,6 @@ namespace OpenSim.Region.Framework.Scenes
2039 HasGroupChangedDueToDelink = false; 2039 HasGroupChangedDueToDelink = false;
2040 2040
2041 m_scene.EventManager.TriggerOnSceneObjectPreSave(backup_group, this); 2041 m_scene.EventManager.TriggerOnSceneObjectPreSave(backup_group, this);
2042 datastore.StoreObject(backup_group, m_scene.RegionInfo.RegionID);
2043
2044 backup_group.ForEachPart(delegate(SceneObjectPart part) 2042 backup_group.ForEachPart(delegate(SceneObjectPart part)
2045 { 2043 {
2046 if (part.KeyframeMotion != null) 2044 if (part.KeyframeMotion != null)
@@ -2048,6 +2046,12 @@ namespace OpenSim.Region.Framework.Scenes
2048 part.KeyframeMotion = KeyframeMotion.FromData(backup_group, part.KeyframeMotion.Serialize()); 2046 part.KeyframeMotion = KeyframeMotion.FromData(backup_group, part.KeyframeMotion.Serialize());
2049 part.KeyframeMotion.UpdateSceneObject(this); 2047 part.KeyframeMotion.UpdateSceneObject(this);
2050 } 2048 }
2049 });
2050
2051 datastore.StoreObject(backup_group, m_scene.RegionInfo.RegionID);
2052
2053 backup_group.ForEachPart(delegate(SceneObjectPart part)
2054 {
2051 part.Inventory.ProcessInventoryBackup(datastore); 2055 part.Inventory.ProcessInventoryBackup(datastore);
2052 }); 2056 });
2053 2057