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:
authorgaiaclary <gaia.clary@machinimatrix.org>2013-11-27 23:48:07 +0400
committergaiaclary <gaia.clary@machinimatrix.org>2013-11-30 02:13:55 +0400
commit72272d2e4f4676c5c67483f1005251253edef15f (patch)
treec3fd07c5adf07ae4cab725f7f8088298983a93e8 /source/blender/windowmanager/wm_files.h
parente2429d6492bb58a87bcbee29a0f78a6ea6bb6dfa (diff)
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.
Diffstat (limited to 'source/blender/windowmanager/wm_files.h')
-rw-r--r--source/blender/windowmanager/wm_files.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/wm_files.h b/source/blender/windowmanager/wm_files.h
index 9fda6801925..0fa076131ab 100644
--- a/source/blender/windowmanager/wm_files.h
+++ b/source/blender/windowmanager/wm_files.h
@@ -35,7 +35,7 @@ void wm_read_history(void);
int wm_file_write(struct bContext *C, const char *target, int fileflags, struct ReportList *reports);
int wm_history_read_exec(bContext *C, wmOperator *op);
int wm_homefile_read_exec(struct bContext *C, struct wmOperator *op);
-int wm_homefile_read(struct bContext *C, struct ReportList *reports, short from_memory);
+int wm_homefile_read(struct bContext *C, struct ReportList *reports, short from_memory, const char *filepath);
int wm_homefile_write_exec(struct bContext *C, struct wmOperator *op);
int wm_userpref_write_exec(struct bContext *C, struct wmOperator *op);