aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Physics/Meshing/Meshmerizer.cs22
1 files changed, 7 insertions, 15 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index fb2b462..fded95e 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -336,24 +336,16 @@ namespace OpenSim.Region.Physics.Meshing
336 bool mirror = ((primShape.SculptType & 128) != 0); 336 bool mirror = ((primShape.SculptType & 128) != 0);
337 bool invert = ((primShape.SculptType & 64) != 0); 337 bool invert = ((primShape.SculptType & 64) != 0);
338 338
339 try 339 sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, false, mirror, invert);
340 { 340
341 sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, false, mirror, invert); 341 idata.Dispose();
342
343 idata.Dispose();
344 342
345 sculptMesh.DumpRaw(baseDir, primName, "primMesh"); 343 sculptMesh.DumpRaw(baseDir, primName, "primMesh");
346 344
347 sculptMesh.Scale(size.X, size.Y, size.Z); 345 sculptMesh.Scale(size.X, size.Y, size.Z);
348 346
349 coords = sculptMesh.coords; 347 coords = sculptMesh.coords;
350 faces = sculptMesh.faces; 348 faces = sculptMesh.faces;
351 }
352 catch(Exception ex)
353 {
354 m_log.Error("[Meshing]: Unable to generate a Sculpty mesh. " + ex.Message);
355 return null;
356 }
357 } 349 }
358 else 350 else
359 { 351 {