forked from bartvdbraak/blender
fix for building without bullet
This commit is contained in:
parent
e8c3c4097a
commit
c19e88ac26
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user