diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 05b9014..83f0c27 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -1726,13 +1726,16 @@ namespace OpenSim.Region.Environment.Scenes | |||
1726 | { | 1726 | { |
1727 | if (m_parts.Count > 1) | 1727 | if (m_parts.Count > 1) |
1728 | { | 1728 | { |
1729 | foreach (SceneObjectPart part in m_parts.Values) | 1729 | lock (m_parts) |
1730 | { | 1730 | { |
1731 | part.ApplyPhysics(m_rootPart.ObjectFlags, m_physicalPrim); | 1731 | foreach (SceneObjectPart part in m_parts.Values) |
1732 | 1732 | { | |
1733 | // Hack to get the physics scene geometries in the right spot | 1733 | part.ApplyPhysics(m_rootPart.ObjectFlags, m_physicalPrim); |
1734 | ResetChildPrimPhysicsPositions(); | 1734 | |
1735 | 1735 | // Hack to get the physics scene geometries in the right spot | |
1736 | ResetChildPrimPhysicsPositions(); | ||
1737 | |||
1738 | } | ||
1736 | } | 1739 | } |
1737 | } | 1740 | } |
1738 | else | 1741 | else |