Put editor initialization before python.

Initially it was moved to allow setting keymaps of python defined menus
in C but looks like it breaks macro definition in python.

Thanks to Julian for tracking this down. It should fix T42485
This commit is contained in:
2014-12-26 19:13:32 +01:00
parent 6339ba1ee2
commit 3253ed9e26

View File

@@ -169,6 +169,8 @@ void WM_init(bContext *C, int argc, const char **argv)
BLF_lang_set(NULL);
ED_spacemacros_init();
/* note: there is a bug where python needs initializing before loading the
* startup.blend because it may contain PyDrivers. It also needs to be after
* initializing space types and other internal data.
@@ -187,8 +189,6 @@ void WM_init(bContext *C, int argc, const char **argv)
(void)argv; /* unused */
#endif
ED_spacemacros_init();
if (!G.background && !wm_start_with_console)
GHOST_toggleConsole(3);