diff options
author | gaiaclary <gaia.clary@machinimatrix.org> | 2013-11-27 23:48:07 +0400 |
---|---|---|
committer | gaiaclary <gaia.clary@machinimatrix.org> | 2013-11-30 02:13:55 +0400 |
commit | 72272d2e4f4676c5c67483f1005251253edef15f (patch) | |
tree | c3fd07c5adf07ae4cab725f7f8088298983a93e8 /source/blender/blenloader/intern/readfile.c | |
parent | e2429d6492bb58a87bcbee29a0f78a6ea6bb6dfa (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/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index cb1d2a0b98f..c6cf32c9477 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5531,6 +5531,10 @@ static void direct_link_windowmanager(FileData *fd, wmWindowManager *wm) win->drawmethod = -1; win->drawfail = 0; win->active = 0; + + win->cursor = 0; + win->lastcursor = 0; + win->modalcursor = 0; } wm->timers.first = wm->timers.last = NULL; |