diff options
author | Robert Adams | 2015-08-23 21:13:40 -0700 |
---|---|---|
committer | Robert Adams | 2015-08-23 21:13:40 -0700 |
commit | 11209c72f5e728052654225d58b0fad7774c3b84 (patch) | |
tree | 13114282d6c7a84734802621e58f76b99355e949 /OpenSim/Region | |
parent | Add Culture.FormatProvider to String.Format, like it is done for LSLFloat (diff) | |
download | opensim-SC-11209c72f5e728052654225d58b0fad7774c3b84.zip opensim-SC-11209c72f5e728052654225d58b0fad7774c3b84.tar.gz opensim-SC-11209c72f5e728052654225d58b0fad7774c3b84.tar.bz2 opensim-SC-11209c72f5e728052654225d58b0fad7774c3b84.tar.xz |
In ScenePresence, when removing from the physical scene, unsubscribe
from collisions before removing the collision callbacks.
Should not make operational differences.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 687a23c..2f19b50 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1398,9 +1398,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1398 | if (PhysicsActor != null) | 1398 | if (PhysicsActor != null) |
1399 | { | 1399 | { |
1400 | // PhysicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients; | 1400 | // PhysicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients; |
1401 | PhysicsActor.UnSubscribeEvents(); | ||
1401 | PhysicsActor.OnOutOfBounds -= OutOfBoundsCall; | 1402 | PhysicsActor.OnOutOfBounds -= OutOfBoundsCall; |
1402 | PhysicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate; | 1403 | PhysicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate; |
1403 | PhysicsActor.UnSubscribeEvents(); | ||
1404 | m_scene.PhysicsScene.RemoveAvatar(PhysicsActor); | 1404 | m_scene.PhysicsScene.RemoveAvatar(PhysicsActor); |
1405 | PhysicsActor = null; | 1405 | PhysicsActor = null; |
1406 | } | 1406 | } |