diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index cfa862e..745872a 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -681,8 +681,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
681 | bool triggerScriptEvent = m_rootPart.GroupPosition != val; | 681 | bool triggerScriptEvent = m_rootPart.GroupPosition != val; |
682 | if (m_dupeInProgress) | 682 | if (m_dupeInProgress) |
683 | triggerScriptEvent = false; | 683 | triggerScriptEvent = false; |
684 | m_rootPart.GroupPosition = val; | ||
685 | if (triggerScriptEvent) | ||
686 | m_rootPart.TriggerScriptChangedEvent(Changed.POSITION); | ||
684 | foreach (SceneObjectPart part in parts) | 687 | foreach (SceneObjectPart part in parts) |
685 | { | 688 | { |
689 | if (part == m_rootPart) | ||
690 | continue; | ||
686 | part.GroupPosition = val; | 691 | part.GroupPosition = val; |
687 | if (triggerScriptEvent) | 692 | if (triggerScriptEvent) |
688 | part.TriggerScriptChangedEvent(Changed.POSITION); | 693 | part.TriggerScriptChangedEvent(Changed.POSITION); |