mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Reverse the order of physics event unsubscription to allow GC. Adapted from Unit's reverted patch
This commit is contained in:
@@ -1065,9 +1065,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
// PhysicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients;
|
||||
PhysicsActor.OnOutOfBounds -= OutOfBoundsCall;
|
||||
m_scene.PhysicsScene.RemoveAvatar(PhysicsActor);
|
||||
PhysicsActor.UnSubscribeEvents();
|
||||
PhysicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate;
|
||||
PhysicsActor.UnSubscribeEvents();
|
||||
m_scene.PhysicsScene.RemoveAvatar(PhysicsActor);
|
||||
PhysicsActor = null;
|
||||
}
|
||||
// else
|
||||
|
||||
Reference in New Issue
Block a user