aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorUbitUmarov2014-07-22 04:10:51 +0100
committerUbitUmarov2014-07-22 04:10:51 +0100
commit0e4a9e35c75a466f4b98f1d4aa7d862e98da5e5d (patch)
treec7ad2cde8242c5ec28ecd75af6b01b4f118b7343 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
parent fix HUD attachment update filter to allow avatar center etc (diff)
downloadopensim-SC-0e4a9e35c75a466f4b98f1d4aa7d862e98da5e5d.zip
opensim-SC-0e4a9e35c75a466f4b98f1d4aa7d862e98da5e5d.tar.gz
opensim-SC-0e4a9e35c75a466f4b98f1d4aa7d862e98da5e5d.tar.bz2
opensim-SC-0e4a9e35c75a466f4b98f1d4aa7d862e98da5e5d.tar.xz
bug fix. Child position got broken because first prim i parts array may
not be the root prim
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs5
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);