2.5
authorTon Roosendaal <ton@blender.org>
Sun, 16 Aug 2009 11:45:25 +0000 (11:45 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 16 Aug 2009 11:45:25 +0000 (11:45 +0000)
Skipping UI script and keymap calls for -b background mode.

source/creator/creator.c

index 8896673b6112767095724ec0894ef3a7baa201e3..4f7a4afb5a6e877a970c90d527712f120582c789 100644 (file)
@@ -503,11 +503,13 @@ int main(int argc, char **argv)
         */
        BPY_post_start_python();
 
         */
        BPY_post_start_python();
 
-       BPY_run_ui_scripts(C, 0); /* dont need to reload the first time */
+       if(!G.background)
+               BPY_run_ui_scripts(C, 0); /* dont need to reload the first time */
 #endif
        
        CTX_py_init_set(C, 1);
 #endif
        
        CTX_py_init_set(C, 1);
-       WM_keymap_init(C); /* after BPY_run_ui_scripts() */
+       if(!G.background)
+               WM_keymap_init(C); /* after BPY_run_ui_scripts() */
 
 #ifdef WITH_QUICKTIME
 
 
 #ifdef WITH_QUICKTIME