aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorubit2012-05-21 13:37:34 +0200
committerubit2012-05-21 13:37:34 +0200
commit4bbd5fa800f9c112be5f9aa7019343312af549f7 (patch)
treea208de009fde1bf3ef6264bde29e562bb8847a53 /OpenSim/Region/Framework/Scenes
parentMerge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork (diff)
parent try to let avas climb higher steps. Will only work in some cases, may have b... (diff)
downloadopensim-SC-4bbd5fa800f9c112be5f9aa7019343312af549f7.zip
opensim-SC-4bbd5fa800f9c112be5f9aa7019343312af549f7.tar.gz
opensim-SC-4bbd5fa800f9c112be5f9aa7019343312af549f7.tar.bz2
opensim-SC-4bbd5fa800f9c112be5f9aa7019343312af549f7.tar.xz
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 5fddaed..2852c4b 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1604,7 +1604,10 @@ namespace OpenSim.Region.Framework.Scenes
1604 } 1604 }
1605 } 1605 }
1606 else if (PhysActor == null) 1606 else if (PhysActor == null)
1607 {
1607 ApplyPhysics((uint)Flags, VolumeDetectActive, false); 1608 ApplyPhysics((uint)Flags, VolumeDetectActive, false);
1609 UpdatePhysicsSubscribedEvents();
1610 }
1608 else 1611 else
1609 { 1612 {
1610 PhysActor.PhysicsShapeType = m_physicsShapeType; 1613 PhysActor.PhysicsShapeType = m_physicsShapeType;
@@ -4664,7 +4667,15 @@ namespace OpenSim.Region.Framework.Scenes
4664 /// </remarks> 4667 /// </remarks>
4665 public void RemoveFromPhysics() 4668 public void RemoveFromPhysics()
4666 { 4669 {
4667 ParentGroup.Scene.PhysicsScene.RemovePrim(PhysActor); 4670 PhysicsActor pa = PhysActor;
4671 if (pa != null)
4672 {
4673 pa.OnCollisionUpdate -= PhysicsCollision;
4674 pa.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate;
4675 pa.OnOutOfBounds -= PhysicsOutOfBounds;
4676
4677 ParentGroup.Scene.PhysicsScene.RemovePrim(pa);
4678 }
4668 PhysActor = null; 4679 PhysActor = null;
4669 } 4680 }
4670 4681