diff options
author | Melanie Thielker | 2010-09-14 22:13:44 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-09-14 22:13:44 +0200 |
commit | cc290abf7a2bd651205e8978a095cb83ffeddcf7 (patch) | |
tree | e12422438a70c9d917c286b509547bd1c5a1e2f7 /OpenSim/Region/Framework | |
parent | Fix a small left over buglet and also add checking of the physics actor (diff) | |
download | opensim-SC-cc290abf7a2bd651205e8978a095cb83ffeddcf7.zip opensim-SC-cc290abf7a2bd651205e8978a095cb83ffeddcf7.tar.gz opensim-SC-cc290abf7a2bd651205e8978a095cb83ffeddcf7.tar.bz2 opensim-SC-cc290abf7a2bd651205e8978a095cb83ffeddcf7.tar.xz |
Adjust the code for ghost prim removal to new information from Kitto
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 37630e0..e933e77 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1789,11 +1789,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
1789 | if (m_rootPart.PhysActor != null && | 1789 | if (m_rootPart.PhysActor != null && |
1790 | (!m_rootPart.PhysActor.IsPhysical)) | 1790 | (!m_rootPart.PhysActor.IsPhysical)) |
1791 | { | 1791 | { |
1792 | // Possible ghost prim | ||
1792 | if (m_rootPart.PhysActor.Position != m_rootPart.GroupPosition) | 1793 | if (m_rootPart.PhysActor.Position != m_rootPart.GroupPosition) |
1793 | { | 1794 | { |
1794 | m_rootPart.PhysActor.Position = m_rootPart.GroupPosition; | 1795 | foreach (SceneObjectPart part in Children.Values) |
1795 | m_rootPart.PhysActor.Orientation = m_rootPart.RotationOffset; | 1796 | { |
1796 | m_scene.PhysicsScene.AddPhysicsActorTaint(m_rootPart.PhysActor); | 1797 | // Re-set physics actor positions and |
1798 | // orientations | ||
1799 | part.GroupPosition = m_rootPart.GroupPosition; | ||
1800 | } | ||
1797 | } | 1801 | } |
1798 | } | 1802 | } |
1799 | // m_log.DebugFormat( | 1803 | // m_log.DebugFormat( |