diff options
Diffstat (limited to 'OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs')
-rw-r--r-- | OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs index 79e2986..ab084fd 100644 --- a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs | |||
@@ -2206,6 +2206,12 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2206 | { | 2206 | { |
2207 | if (prim.prim_geom != IntPtr.Zero) | 2207 | if (prim.prim_geom != IntPtr.Zero) |
2208 | { | 2208 | { |
2209 | |||
2210 | //string tPA; | ||
2211 | //geom_name_map.TryGetValue(prim.prim_geom, out tPA); | ||
2212 | //Console.WriteLine("**** Remove {0}", tPA); | ||
2213 | if(geom_name_map.ContainsKey(prim.prim_geom)) geom_name_map.Remove(prim.prim_geom); | ||
2214 | if(actor_name_map.ContainsKey(prim.prim_geom)) actor_name_map.Remove(prim.prim_geom); | ||
2209 | d.GeomDestroy(prim.prim_geom); | 2215 | d.GeomDestroy(prim.prim_geom); |
2210 | prim.prim_geom = IntPtr.Zero; | 2216 | prim.prim_geom = IntPtr.Zero; |
2211 | } | 2217 | } |