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/blenloader/intern/readfile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenloader/intern/readfile.c') 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; -- cgit v1.2.3