diff --git a/source/gameengine/Converter/BL_BlenderDataConversion.cpp b/source/gameengine/Converter/BL_BlenderDataConversion.cpp index be62664d8891..cef2237780f1 100644 --- a/source/gameengine/Converter/BL_BlenderDataConversion.cpp +++ b/source/gameengine/Converter/BL_BlenderDataConversion.cpp @@ -1212,6 +1212,7 @@ static KX_GameObject* getGameOb(STR_String busc,CListValue* sumolist) static void BL_ConvertComponentsObject(KX_GameObject *gameobj, Object *blenderobj) { +#ifdef WITH_PYTHON PythonComponent *pc = (PythonComponent *)blenderobj->components.first; PyObject *arg_dict = NULL, *args = NULL, *mod = NULL, *cls = NULL, *pycomp = NULL, *ret = NULL; @@ -1286,6 +1287,7 @@ static void BL_ConvertComponentsObject(KX_GameObject *gameobj, Object *blenderob Py_XDECREF(pycomp); gameobj->SetComponents(components); +#endif // WITH_PYTHON } /* helper for BL_ConvertBlenderObjects, avoids code duplication diff --git a/source/gameengine/Ketsji/KX_BlenderMaterial.h b/source/gameengine/Ketsji/KX_BlenderMaterial.h index 4e04d1c98d5c..e01835b757d5 100644 --- a/source/gameengine/Ketsji/KX_BlenderMaterial.h +++ b/source/gameengine/Ketsji/KX_BlenderMaterial.h @@ -153,6 +153,8 @@ class KX_BlenderMaterial : public CValue, public RAS_IPolyMaterial void OnExit(); }; +#ifdef WITH_PYTHON bool ConvertPythonToMaterial(PyObject *value, KX_BlenderMaterial **material, bool py_none_ok, const char *error_prefix); +#endif // WITH_PYTHON #endif diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp index cba7f8b084bd..299d5eb592b6 100644 --- a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp +++ b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp @@ -398,9 +398,11 @@ bool KX_KetsjiEngine::NextFrame() // Handle all SDL Joystick events here to share them for all scenes properly. short addrem[JOYINDEX_MAX] = {0}; if (DEV_Joystick::HandleEvents(addrem)) { +# ifdef WITH_PYTHON updatePythonJoysticks(addrem); +# endif // WITH_PYTHON } -#endif +#endif // WITH_SDL // for each scene, call the proceed functions for (CListValue::iterator sceit = m_scenes->GetBegin(), sceend = m_scenes->GetEnd(); sceit != sceend; ++sceit) {