From 32b8fa4a77fb7837b8f583243babca225eac6277 Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 5 Jan 2012 07:37:09 +0100 Subject: Prevent spurious "CHANGED_POSITION" during region backup --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 48a870e..3b0d1cd 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -481,13 +481,14 @@ namespace OpenSim.Region.Framework.Scenes } } SceneObjectPart[] parts = m_parts.GetArray(); + bool triggerScriptEvent = m_rootPart.GroupPosition != val; + if (m_dupeInProgress) + triggerScriptEvent = false; foreach (SceneObjectPart part in parts) { part.GroupPosition = val; - if (!m_dupeInProgress) - { + if (triggerScriptEvent) part.TriggerScriptChangedEvent(Changed.POSITION); - } } if (!m_dupeInProgress) { -- cgit v1.1