Log the UUID of a prim that fails meshing and set the prim to phantom during

region startup
avinationmerge
Melanie Thielker 2010-08-03 05:25:23 +02:00
parent d2d1c63b17
commit e3184753a6
1 changed files with 15 additions and 8 deletions

View File

@ -1497,14 +1497,21 @@ namespace OpenSim.Region.Framework.Scenes
// or flexible // or flexible
if (!isPhantom && !IsAttachment && !(Shape.PathCurve == (byte) Extrusion.Flexible)) if (!isPhantom && !IsAttachment && !(Shape.PathCurve == (byte) Extrusion.Flexible))
{ {
PhysActor = m_parentGroup.Scene.PhysicsScene.AddPrimShape( try
Name, {
Shape, PhysActor = m_parentGroup.Scene.PhysicsScene.AddPrimShape(
AbsolutePosition, Name,
Scale, Shape,
RotationOffset, AbsolutePosition,
RigidBody); Scale,
RotationOffset,
RigidBody);
}
catch
{
m_log.ErrorFormat("[SCENE]: caught exception meshing object {0}. Object set to phantom.", m_uuid);
PhysActor = null;
}
// Basic Physics returns null.. joy joy joy. // Basic Physics returns null.. joy joy joy.
if (PhysActor != null) if (PhysActor != null)
{ {