[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22509] branches/blender2.5/blender/source /creator/creator.c: 2.5

Ton Roosendaal ton at blender.org
Sun Aug 16 13:45:25 CEST 2009


Revision: 22509
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22509
Author:   ton
Date:     2009-08-16 13:45:25 +0200 (Sun, 16 Aug 2009)

Log Message:
-----------
2.5

Skipping UI script and keymap calls for -b background mode.

Modified Paths:
--------------
    branches/blender2.5/blender/source/creator/creator.c

Modified: branches/blender2.5/blender/source/creator/creator.c
===================================================================
--- branches/blender2.5/blender/source/creator/creator.c	2009-08-16 11:25:18 UTC (rev 22508)
+++ branches/blender2.5/blender/source/creator/creator.c	2009-08-16 11:45:25 UTC (rev 22509)
@@ -503,11 +503,13 @@
 	 */
 	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
 





More information about the Bf-blender-cvs mailing list