From 0e4a9e35c75a466f4b98f1d4aa7d862e98da5e5d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 22 Jul 2014 04:10:51 +0100 Subject: bug fix. Child position got broken because first prim i parts array may not be the root prim --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs') 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 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); -- cgit v1.1