aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorlbsa712008-01-17 09:32:02 +0000
committerlbsa712008-01-17 09:32:02 +0000
commit344b4d92f5065874610e9866fdd329ed8ff672d1 (patch)
treeec4e3b4ae16348097e1eab2376a01f9d23515bad /OpenSim
parent* Added and implemented the LSL changed event. (diff)
downloadopensim-SC-344b4d92f5065874610e9866fdd329ed8ff672d1.zip
opensim-SC-344b4d92f5065874610e9866fdd329ed8ff672d1.tar.gz
opensim-SC-344b4d92f5065874610e9866fdd329ed8ff672d1.tar.bz2
opensim-SC-344b4d92f5065874610e9866fdd329ed8ff672d1.tar.xz
* added ForEachPart helper
* added SetOwnerId that... sets.. OwnerId... on all parts.
Diffstat (limited to 'OpenSim')
-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}