[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38875] trunk/blender/source/gameengine/ Ketsji/KX_PyConstraintBinding.cpp: fix for building without bullet
Campbell Barton
ideasman42 at gmail.com
Sun Jul 31 09:45:55 CEST 2011
Revision: 38875
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38875
Author: campbellbarton
Date: 2011-07-31 07:45:54 +0000 (Sun, 31 Jul 2011)
Log Message:
-----------
fix for building without bullet
Modified Paths:
--------------
trunk/blender/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
Modified: trunk/blender/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp 2011-07-31 07:03:02 UTC (rev 38874)
+++ trunk/blender/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp 2011-07-31 07:45:54 UTC (rev 38875)
@@ -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 @@
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 @@
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);
More information about the Bf-blender-cvs
mailing list