Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-08-16 15:45:25 +0400
committerTon Roosendaal <ton@blender.org>2009-08-16 15:45:25 +0400
commit59c6a815076ae15e2a6fe57170e30d133baa20ce (patch)
treef12b8e84855fd513fb2bbe62ee9742045d8549f9 /source/creator
parent2cc64a95b5030854df4f2ea7740018b94e60b24b (diff)
2.5
Skipping UI script and keymap calls for -b background mode.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c6
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