CMake: fix WITH_PYTHON=OFF

This commit is contained in:
Campbell Barton 2019-04-15 08:40:15 +02:00
parent bdeb6743e3
commit 3849e02369
1 changed files with 2 additions and 0 deletions

View File

@ -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
}
}