diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-10 13:49:44 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-10 13:49:44 +0400 |
commit | 076932c7cbb5fdb9942ccb55baf4f813cc70ae08 (patch) | |
tree | d284974e7f34c43e9d915fc20b1cfb0393a2d8bd /source/blender/windowmanager/intern/wm_files.c | |
parent | a963e7ae4245f2ab393bd1f78ec6ea00fd4c7ef2 (diff) |
alternate solution for r55921 which was calling invoke() from exec(), which shouldnt be done.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index f8cd154df35..7a528e41995 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -395,7 +395,14 @@ void WM_file_read(bContext *C, const char *filepath, ReportList *reports) /* confusing this global... */ G.relbase_valid = 1; retval = BKE_read_file(C, filepath, reports); - G.save_over = 1; + /* when loading startup.blend's, we can be left with a blank path */ + if (G.main->name[0]) { + G.save_over = 1; + } + else { + G.save_over = 0; + G.relbase_valid = 0; + } /* this flag is initialized by the operator but overwritten on read. * need to re-enable it here else drivers + registered scripts wont work. */ |