Added some exception handling to help catch some possibly corrupt prims
parent
3481a977f0
commit
cf951d4d04
|
@ -1926,8 +1926,18 @@ namespace OpenSim.Region.Physics.Meshing
|
|||
#if SPAM
|
||||
Console.WriteLine("****** PrimMesh Parameters (Linear) ******\n" + primMesh.ParamsToDisplayString());
|
||||
#endif
|
||||
try
|
||||
{
|
||||
primMesh.ExtrudeLinear();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine("Extrusion failure: exception: " + ex.ToString());
|
||||
Console.WriteLine("\n Prim Name: " + primName);
|
||||
Console.WriteLine("****** PrimMesh Parameters (Linear) ******\n" + primMesh.ParamsToDisplayString());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//return null;
|
||||
|
@ -1943,8 +1953,18 @@ namespace OpenSim.Region.Physics.Meshing
|
|||
#if SPAM
|
||||
Console.WriteLine("****** PrimMesh Parameters (Circular) ******\n" + primMesh.ParamsToDisplayString());
|
||||
#endif
|
||||
try
|
||||
{
|
||||
primMesh.ExtrudeCircular();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine("Extrusion failure: exception: " + ex.ToString());
|
||||
Console.WriteLine("\n Prim Name: " + primName);
|
||||
Console.WriteLine("****** PrimMesh Parameters (Circular) ******\n" + primMesh.ParamsToDisplayString());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
primMesh.DumpRaw(baseDir, primName, "primMesh");
|
||||
|
||||
|
|
Loading…
Reference in New Issue