From c299953ce5cfe1c4b585d1abf29dfdaf7050cd15 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 27 Jun 2008 14:46:44 +0000 Subject: * Remove SOG.SendGroupFullUpdate() group changed responsibility --- OpenSim/Region/Environment/Scenes/InnerScene.cs | 5 ++++- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 6dccf77..d74d763 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs @@ -223,7 +223,10 @@ namespace OpenSim.Region.Environment.Scenes /// true if the object was added, false if an object with the same uuid was already in the scene /// protected internal void AddNewSceneObject(SceneObjectGroup sceneObject, bool attachToBackup) - { + { + // Ensure that we persist this new scene object + sceneObject.HasGroupChanged = true; + AddSceneObject(sceneObject, attachToBackup); } diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index a7c54b3..0fa76fa 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -1567,8 +1567,6 @@ namespace OpenSim.Region.Environment.Scenes /// public void SendGroupFullUpdate() { - HasGroupChanged = true; - lock (m_parts) { foreach (SceneObjectPart part in m_parts.Values) -- cgit v1.1