mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
In ScenePresence, when removing from the physical scene, unsubscribe
from collisions before removing the collision callbacks. Should not make operational differences.
This commit is contained in:
@@ -1398,9 +1398,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (PhysicsActor != null)
|
||||
{
|
||||
// PhysicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients;
|
||||
PhysicsActor.UnSubscribeEvents();
|
||||
PhysicsActor.OnOutOfBounds -= OutOfBoundsCall;
|
||||
PhysicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate;
|
||||
PhysicsActor.UnSubscribeEvents();
|
||||
m_scene.PhysicsScene.RemoveAvatar(PhysicsActor);
|
||||
PhysicsActor = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user