diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-15 09:40:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-15 09:40:29 +0300 |
commit | 3849e02369c439ead02b9bc88123e1eb61879527 (patch) | |
tree | 9e617618aa784ea0f6c2bf3737a74042a1f89358 /source/blender/windowmanager/intern | |
parent | bdeb6743e3a881a4d4711ce800e6ad539a6b968a (diff) |
CMake: fix WITH_PYTHON=OFF
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm.c | 2 |
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 } } |