fix for building without bullet
authorCampbell Barton <ideasman42@gmail.com>
Sun, 31 Jul 2011 07:45:54 +0000 (07:45 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 31 Jul 2011 07:45:54 +0000 (07:45 +0000)
source/gameengine/Ketsji/KX_PyConstraintBinding.cpp

index 843dbe21995c24ac4b3f555ce350bb69206d11f8..a7d213bff791905fed2f364b3a1bbe6897622d86 100644 (file)
@@ -43,7 +43,9 @@
 
 #include "PyObjectPlus.h" 
 
-#include "LinearMath/btIDebugDraw.h"
+#ifdef USE_BULLET
+#  include "LinearMath/btIDebugDraw.h"
+#endif
 
 #ifdef WITH_PYTHON
 
@@ -690,6 +692,7 @@ PyObject*   initPythonConstraintBinding()
   PyDict_SetItemString(d, "error", ErrorObject);
   Py_DECREF(ErrorObject);
 
+#ifdef USE_BULLET
   //Debug Modes constants to be used with setDebugMode() python function
   KX_MACRO_addTypesToDict(d, DBG_NODEBUG, btIDebugDraw::DBG_NoDebug);
   KX_MACRO_addTypesToDict(d, DBG_DRAWWIREFRAME, btIDebugDraw::DBG_DrawWireframe);
@@ -705,6 +708,7 @@ PyObject*   initPythonConstraintBinding()
   KX_MACRO_addTypesToDict(d, DBG_DRAWCONSTRAINTS, btIDebugDraw::DBG_DrawConstraints);
   KX_MACRO_addTypesToDict(d, DBG_DRAWCONSTRAINTLIMITS, btIDebugDraw::DBG_DrawConstraintLimits);
   KX_MACRO_addTypesToDict(d, DBG_FASTWIREFRAME, btIDebugDraw::DBG_FastWireframe);
+#endif // USE_BULLET
 
   //Constraint types to be used with createConstraint() python function
   KX_MACRO_addTypesToDict(d, POINTTOPOINT_CONSTRAINT, PHY_POINT2POINT_CONSTRAINT);