Catch meshing error in Meshmerizer
parent
d2d56494b2
commit
8f2986bc6a
|
@ -336,16 +336,24 @@ namespace OpenSim.Region.Physics.Meshing
|
||||||
bool mirror = ((primShape.SculptType & 128) != 0);
|
bool mirror = ((primShape.SculptType & 128) != 0);
|
||||||
bool invert = ((primShape.SculptType & 64) != 0);
|
bool invert = ((primShape.SculptType & 64) != 0);
|
||||||
|
|
||||||
sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, false, mirror, invert);
|
try
|
||||||
|
{
|
||||||
|
sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, false, mirror, invert);
|
||||||
|
|
||||||
idata.Dispose();
|
idata.Dispose();
|
||||||
|
|
||||||
sculptMesh.DumpRaw(baseDir, primName, "primMesh");
|
sculptMesh.DumpRaw(baseDir, primName, "primMesh");
|
||||||
|
|
||||||
sculptMesh.Scale(size.X, size.Y, size.Z);
|
sculptMesh.Scale(size.X, size.Y, size.Z);
|
||||||
|
|
||||||
coords = sculptMesh.coords;
|
coords = sculptMesh.coords;
|
||||||
faces = sculptMesh.faces;
|
faces = sculptMesh.faces;
|
||||||
|
}
|
||||||
|
catch(Exception ex)
|
||||||
|
{
|
||||||
|
m_log.Error("[Meshing]: Unable to generate a Sculpty mesh. " + ex.Message);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue