In ScenePresence, when removing from the physical scene, unsubscribe

from collisions before removing the collision callbacks.
Should not make operational differences.
0.8.2-post-fixes
Robert Adams 2015-08-23 21:13:40 -07:00
parent 722d00903b
commit 11209c72f5
1 changed files with 1 additions and 1 deletions

View File

@ -1398,9 +1398,9 @@ namespace OpenSim.Region.Framework.Scenes
if (PhysicsActor != null) if (PhysicsActor != null)
{ {
// PhysicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients; // PhysicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients;
PhysicsActor.UnSubscribeEvents();
PhysicsActor.OnOutOfBounds -= OutOfBoundsCall; PhysicsActor.OnOutOfBounds -= OutOfBoundsCall;
PhysicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate; PhysicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate;
PhysicsActor.UnSubscribeEvents();
m_scene.PhysicsScene.RemoveAvatar(PhysicsActor); m_scene.PhysicsScene.RemoveAvatar(PhysicsActor);
PhysicsActor = null; PhysicsActor = null;
} }