From 72272d2e4f4676c5c67483f1005251253edef15f Mon Sep 17 00:00:00 2001 From: gaiaclary Date: Wed, 27 Nov 2013 20:48:07 +0100 Subject: D54: Added a filepath attribute to the read_homefile operator. This attribute allows to open a blend file as an alternative start-up file. The attribute is only available from python. This is an example call: bpy.ops.wm.read_homefile(filepath='path/to/a/file.blend') This patch also changes readfile.c to ensure that unintentionally stored cursor states are not imported from the loaded file. --- source/blender/windowmanager/intern/wm_init_exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/windowmanager/intern/wm_init_exit.c') diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 4e9b849af40..63aa3ce6811 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -159,7 +159,7 @@ void WM_init(bContext *C, int argc, const char **argv) BLF_lang_init(); /* get the default database, plus a wm */ - wm_homefile_read(C, NULL, G.factory_startup); + wm_homefile_read(C, NULL, G.factory_startup, NULL); BLF_lang_set(NULL); -- cgit v1.2.3