bug fix. Child position got broken because first prim i parts array may

not be the root prim
avinationmerge
UbitUmarov 2014-07-22 04:10:51 +01:00
parent 3e73e96bef
commit 0e4a9e35c7
1 changed files with 5 additions and 0 deletions

View File

@ -681,8 +681,13 @@ namespace OpenSim.Region.Framework.Scenes
bool triggerScriptEvent = m_rootPart.GroupPosition != val; bool triggerScriptEvent = m_rootPart.GroupPosition != val;
if (m_dupeInProgress) if (m_dupeInProgress)
triggerScriptEvent = false; triggerScriptEvent = false;
m_rootPart.GroupPosition = val;
if (triggerScriptEvent)
m_rootPart.TriggerScriptChangedEvent(Changed.POSITION);
foreach (SceneObjectPart part in parts) foreach (SceneObjectPart part in parts)
{ {
if (part == m_rootPart)
continue;
part.GroupPosition = val; part.GroupPosition = val;
if (triggerScriptEvent) if (triggerScriptEvent)
part.TriggerScriptChangedEvent(Changed.POSITION); part.TriggerScriptChangedEvent(Changed.POSITION);