diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-31 11:45:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-31 11:45:54 +0400 |
commit | c19e88ac26e266bd8ba7a6f15c45e3447ac5624c (patch) | |
tree | 50e4e71485ec4ad60a3e26cbd2dceaca6d596dfc /source/gameengine/Ketsji/KX_PyConstraintBinding.cpp | |
parent | e8c3c4097a146b059fa52893a2a1b6e89cdb3094 (diff) |
fix for building without bullet
Diffstat (limited to 'source/gameengine/Ketsji/KX_PyConstraintBinding.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_PyConstraintBinding.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp index 843dbe21995..a7d213bff79 100644 --- a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp +++ b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp @@ -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); |