diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs index 6e4e41f..865180f 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | |||
@@ -740,6 +740,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
740 | if (Shell != IntPtr.Zero) | 740 | if (Shell != IntPtr.Zero) |
741 | { | 741 | { |
742 | _parent_scene.geom_name_map.Remove(Shell); | 742 | _parent_scene.geom_name_map.Remove(Shell); |
743 | _parent_scene.actor_name_map.Remove(Shell); | ||
743 | _parent_scene.waitForSpaceUnlock(_parent_scene.ActiveSpace); | 744 | _parent_scene.waitForSpaceUnlock(_parent_scene.ActiveSpace); |
744 | d.GeomDestroy(Shell); | 745 | d.GeomDestroy(Shell); |
745 | Shell = IntPtr.Zero; | 746 | Shell = IntPtr.Zero; |
@@ -1188,6 +1189,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1188 | } | 1189 | } |
1189 | else | 1190 | else |
1190 | { | 1191 | { |
1192 | _parent_scene.RemoveCollisionEventReporting(this); | ||
1191 | _parent_scene.RemoveCharacter(this); | 1193 | _parent_scene.RemoveCharacter(this); |
1192 | // destroy avatar capsule and related ODE data | 1194 | // destroy avatar capsule and related ODE data |
1193 | AvatarGeomAndBodyDestroy(); | 1195 | AvatarGeomAndBodyDestroy(); |