aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/OdePlugin.cs')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdePlugin.cs3
1 files changed, 2 insertions, 1 deletions
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
1151 lock (OdeScene.OdeLock) 1151 lock (OdeScene.OdeLock)
1152 { 1152 {
1153 string oldname = _parent_scene.geom_name_map[prim_geom]; 1153 string oldname = _parent_scene.geom_name_map[prim_geom];
1154 1154
1155 // Cleanup of old prim geometry 1155 // Cleanup of old prim geometry
1156 if (_mesh != null) 1156 if (_mesh != null)
1157 { 1157 {
@@ -1162,6 +1162,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1162 { 1162 {
1163 disableBody(); 1163 disableBody();
1164 } 1164 }
1165 d.GeomDestroy(prim_geom);
1165 // Construction of new prim 1166 // Construction of new prim
1166 if (this._parent_scene.needsMeshing(_pbs)) 1167 if (this._parent_scene.needsMeshing(_pbs))
1167 { 1168 {