Prevent spurious "CHANGED_POSITION" during region backup
parent
a6e305063e
commit
32b8fa4a77
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue