From 8f0bf406fb9db0834d84e6c1b6aa418996283638 Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 13 Nov 2008 15:42:19 +0000 Subject: [PATCH] Applying Mantis patch 2597 (applied to trunk in revision 7274) to 0.6 stable branch --- OpenSim/Region/Environment/Scenes/Scene.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 171ab2e018..1385cab534 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -641,6 +641,17 @@ namespace OpenSim.Region.Environment.Scenes // Stop updating the scene objects and agents. //m_heartbeatTimer.Close(); shuttingdown = true; + + m_log.Debug("[SCENE]: Persisting changed objects"); + List entities = GetEntities(); + foreach (EntityBase entity in entities) + { + if (!entity.IsDeleted && entity is SceneObjectGroup && ((SceneObjectGroup)entity).HasGroupChanged) + { + ((SceneObjectGroup)entity).ProcessBackup(m_storageManager.DataStore); + } + } + // close the inner scene m_innerScene.Close(); // De-register with region communications (events cleanup)