From 43ea37b5a0094e15f6787a0f905d770c016d5bb1 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 10 Nov 2007 17:23:36 +0000 Subject: * ODE Fixed annoying bug where resizing causes there to be a 'ghost' prim left that blocks your way. --- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index decf93f..4e69175 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -1151,7 +1151,7 @@ namespace OpenSim.Region.Physics.OdePlugin lock (OdeScene.OdeLock) { string oldname = _parent_scene.geom_name_map[prim_geom]; - + // Cleanup of old prim geometry if (_mesh != null) { @@ -1162,6 +1162,7 @@ namespace OpenSim.Region.Physics.OdePlugin { disableBody(); } + d.GeomDestroy(prim_geom); // Construction of new prim if (this._parent_scene.needsMeshing(_pbs)) { -- cgit v1.1