bug fix. Child position got broken because first prim i parts array may
not be the root primavinationmerge
parent
3e73e96bef
commit
0e4a9e35c7
|
@ -681,8 +681,13 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
bool triggerScriptEvent = m_rootPart.GroupPosition != val;
|
||||
if (m_dupeInProgress)
|
||||
triggerScriptEvent = false;
|
||||
m_rootPart.GroupPosition = val;
|
||||
if (triggerScriptEvent)
|
||||
m_rootPart.TriggerScriptChangedEvent(Changed.POSITION);
|
||||
foreach (SceneObjectPart part in parts)
|
||||
{
|
||||
if (part == m_rootPart)
|
||||
continue;
|
||||
part.GroupPosition = val;
|
||||
if (triggerScriptEvent)
|
||||
part.TriggerScriptChangedEvent(Changed.POSITION);
|
||||
|
|
Loading…
Reference in New Issue