Prevent spurious "CHANGED_POSITION" during region backup

avinationmerge
Melanie 2012-01-05 07:37:09 +01:00
parent a6e305063e
commit 32b8fa4a77
1 changed files with 4 additions and 3 deletions

View File

@ -481,13 +481,14 @@ namespace OpenSim.Region.Framework.Scenes
} }
} }
SceneObjectPart[] parts = m_parts.GetArray(); SceneObjectPart[] parts = m_parts.GetArray();
bool triggerScriptEvent = m_rootPart.GroupPosition != val;
if (m_dupeInProgress)
triggerScriptEvent = false;
foreach (SceneObjectPart part in parts) foreach (SceneObjectPart part in parts)
{ {
part.GroupPosition = val; part.GroupPosition = val;
if (!m_dupeInProgress) if (triggerScriptEvent)
{
part.TriggerScriptChangedEvent(Changed.POSITION); part.TriggerScriptChangedEvent(Changed.POSITION);
}
} }
if (!m_dupeInProgress) if (!m_dupeInProgress)
{ {