aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs23
1 files changed, 15 insertions, 8 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index b19c443..032fbe8 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1497,14 +1497,21 @@ namespace OpenSim.Region.Framework.Scenes
1497 // or flexible 1497 // or flexible
1498 if (!isPhantom && !IsAttachment && !(Shape.PathCurve == (byte) Extrusion.Flexible)) 1498 if (!isPhantom && !IsAttachment && !(Shape.PathCurve == (byte) Extrusion.Flexible))
1499 { 1499 {
1500 PhysActor = m_parentGroup.Scene.PhysicsScene.AddPrimShape( 1500 try
1501 Name, 1501 {
1502 Shape, 1502 PhysActor = m_parentGroup.Scene.PhysicsScene.AddPrimShape(
1503 AbsolutePosition, 1503 Name,
1504 Scale, 1504 Shape,
1505 RotationOffset, 1505 AbsolutePosition,
1506 RigidBody); 1506 Scale,
1507 1507 RotationOffset,
1508 RigidBody);
1509 }
1510 catch
1511 {
1512 m_log.ErrorFormat("[SCENE]: caught exception meshing object {0}. Object set to phantom.", m_uuid);
1513 PhysActor = null;
1514 }
1508 // Basic Physics returns null.. joy joy joy. 1515 // Basic Physics returns null.. joy joy joy.
1509 if (PhysActor != null) 1516 if (PhysActor != null)
1510 { 1517 {