Fix #28865: Draw_bounds_type does not display Polyhedron or Capsule types
[blender.git] / source / gameengine / Converter / BL_BlenderDataConversion.cpp
index ca37b06d12e785b564d4b08c6540336fd174ad7c..779d794cc100094bab4ed5c0293916dbf7dfdab0 100644 (file)
@@ -1579,7 +1579,7 @@ void BL_CreatePhysicsObjectNew(KX_GameObject* gameobj,
        my_get_local_bounds(blenderobject,dm,objprop.m_boundobject.box.m_center,bb.m_extends);
        if (blenderobject->gameflag & OB_BOUNDS)
        {
-               switch (blenderobject->boundtype)
+               switch (blenderobject->collision_boundtype)
                {
                        case OB_BOUND_BOX:
                                objprop.m_boundclass = KX_BOUNDBOX;