Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-15 09:40:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-15 09:40:29 +0300
commit3849e02369c439ead02b9bc88123e1eb61879527 (patch)
tree9e617618aa784ea0f6c2bf3737a74042a1f89358 /source/blender/windowmanager/intern/wm.c
parentbdeb6743e3a881a4d4711ce800e6ad539a6b968a (diff)
CMake: fix WITH_PYTHON=OFF
Diffstat (limited to 'source/blender/windowmanager/intern/wm.c')
-rw-r--r--source/blender/windowmanager/intern/wm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c
index 8e01094da4d..a05dce9d59a 100644
--- a/source/blender/windowmanager/intern/wm.c
+++ b/source/blender/windowmanager/intern/wm.c
@@ -219,9 +219,11 @@ void WM_operator_handlers_clear(wmWindowManager *wm, wmOperatorType *ot)
void WM_keyconfig_reload(bContext *C)
{
if (CTX_py_init_get(C) && !G.background) {
+#ifdef WITH_PYTHON
BPY_execute_string(
C, (const char *[]){"bpy", NULL},
"bpy.utils.keyconfig_init()");
+#endif
}
}