diff options
author | Ton Roosendaal <ton@blender.org> | 2009-08-16 15:45:25 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-08-16 15:45:25 +0400 |
commit | 59c6a815076ae15e2a6fe57170e30d133baa20ce (patch) | |
tree | f12b8e84855fd513fb2bbe62ee9742045d8549f9 /source/creator | |
parent | 2cc64a95b5030854df4f2ea7740018b94e60b24b (diff) |
2.5
Skipping UI script and keymap calls for -b background mode.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 8896673b611..4f7a4afb5a6 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -503,11 +503,13 @@ int main(int argc, char **argv) */ 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); - WM_keymap_init(C); /* after BPY_run_ui_scripts() */ + if(!G.background) + WM_keymap_init(C); /* after BPY_run_ui_scripts() */ #ifdef WITH_QUICKTIME |