Fix for bugs: 1788 (forces) and 1799 (python delattr on game objects)
[blender.git] / source / gameengine / Converter / BL_BlenderDataConversion.cpp
index e0d460d18d6d76fc38d5059a5aff7063691f1906..7fa2b68e0c2c05cb1fe47e0284b16fc92e9ddacb 100644 (file)
@@ -715,6 +715,14 @@ void BL_CreatePhysicsObjectNew(KX_GameObject* gameobj,
                                objprop.m_boundobject.box.m_extends[1]=2.f*bb.m_extends[1];
                                objprop.m_boundobject.box.m_extends[2]=2.f*bb.m_extends[2];
                                break;
+                       case OB_BOUND_POLYT:
+                               if (blenderobject->type == OB_MESH)
+                               {
+                                       objprop.m_boundclass = KX_BOUNDPOLYTOPE;
+                                       break;
+                               }
+                               // Object is not a mesh... fall through OB_BOUND_POLYH to 
+                               // OB_BOUND_SPHERE
                        case OB_BOUND_POLYH:
                                if (blenderobject->type == OB_MESH)
                                {