From 919118f0ef67d188753ac551414951ed653e814b Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 6 Nov 2007 17:19:10 +0000 Subject: * fix for Bug 563 * fix for ODE geoms not getting disposed of properly when resizing. --- OpenSim/Region/Physics/OdePlugin/Meshing/Meshmerizer.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Physics/OdePlugin/Meshing/Meshmerizer.cs') diff --git a/OpenSim/Region/Physics/OdePlugin/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/OdePlugin/Meshing/Meshmerizer.cs index 2a304cb..37fbb8a 100644 --- a/OpenSim/Region/Physics/OdePlugin/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/OdePlugin/Meshing/Meshmerizer.cs @@ -361,7 +361,11 @@ namespace OpenSim.Region.Physics.OdePlugin.Meshing CalcNormals(mesh); break; default: - mesh = null; + mesh = CreateBoxMesh(primName, primShape, size); + CalcNormals(mesh); + //Set default mesh to cube otherwise it'll return + // null and crash on the 'setMesh' method in the physics plugins. + //mesh = null; break; } -- cgit v1.1