aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs18
1 files changed, 16 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 3327fea..6447403 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -1667,9 +1667,9 @@ namespace OpenSim.Region.Environment.Scenes
1667 { 1667 {
1668 if (m_parts.Count > 1) 1668 if (m_parts.Count > 1)
1669 { 1669 {
1670 foreach (SceneObjectPart parts in m_parts.Values) 1670 foreach (SceneObjectPart part in m_parts.Values)
1671 { 1671 {
1672 parts.ApplyPhysics(m_rootPart.ObjectFlags, m_physicalPrim); 1672 part.ApplyPhysics(m_rootPart.ObjectFlags, m_physicalPrim);
1673 1673
1674 // Hack to get the physics scene geometries in the right spot 1674 // Hack to get the physics scene geometries in the right spot
1675 ResetChildPrimPhysicsPositions(); 1675 ResetChildPrimPhysicsPositions();
@@ -1681,5 +1681,19 @@ namespace OpenSim.Region.Environment.Scenes
1681 m_rootPart.ApplyPhysics(m_rootPart.ObjectFlags, m_physicalPrim); 1681 m_rootPart.ApplyPhysics(m_rootPart.ObjectFlags, m_physicalPrim);
1682 } 1682 }
1683 } 1683 }
1684
1685 public void SetOwnerId(LLUUID userId)
1686 {
1687 ForEachPart(delegate(SceneObjectPart part)
1688 { part.OwnerID = userId; });
1689 }
1690
1691 public void ForEachPart(Action<SceneObjectPart> whatToDo)
1692 {
1693 foreach (SceneObjectPart part in m_parts.Values)
1694 {
1695 whatToDo(part);
1696 }
1697 }
1684 } 1698 }
1685} 1699}