Skipping UI script and keymap calls for -b background mode.
This commit is contained in:
Ton Roosendaal 2009-08-16 11:45:25 +00:00
parent 2cc64a95b5
commit 59c6a81507

@ -503,10 +503,12 @@ int main(int argc, char **argv)
*/
BPY_post_start_python();
if(!G.background)
BPY_run_ui_scripts(C, 0); /* dont need to reload the first time */
#endif
CTX_py_init_set(C, 1);
if(!G.background)
WM_keymap_init(C); /* after BPY_run_ui_scripts() */
#ifdef WITH_QUICKTIME