Background mode in more working conditions.
authorMartin Poirier <theeth@yahoo.com>
Wed, 11 Nov 2009 04:08:09 +0000 (04:08 +0000)
committerMartin Poirier <theeth@yahoo.com>
Wed, 11 Nov 2009 04:08:09 +0000 (04:08 +0000)
commite776ecfddec846b50b6bbd86f2ea56d159b6f237
tree2f52be68814102c174e77c2d080061eaa43e2038
parentf7d71499369fabc19ebc46ca723b6437943005de
Background mode in more working conditions.

What works:
The usual command line options for rendering.
All python scripts are loaded (which includes custom properties)
Render engines are loaded and can be used
-P to run scripts works partially: rna api works ok, not operators.

What doesn't:
Most operator calls in python. This is a problem with poll functions. (Brecht and Campbell are aware of this already)

Changes:
-d now also applied with -b (it was ignored before)
user file (.B25.blend) now also loaded in bg mode. This helps for custom paths and all.
wm is also initialized (it's needed for a lot of context calls)
Ghost, however, is not initialized.
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_files.c
source/blender/windowmanager/intern/wm_init_exit.c
source/blender/windowmanager/intern/wm_window.c
source/blender/windowmanager/wm.h
source/creator/creator.c