aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-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