diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-15 14:51:05 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-15 14:51:05 +0400 |
commit | dcc1e6019df2f5655fa38aa9f6c8c98e2e57e4fa (patch) | |
tree | 9a2a45436e622f91b3369c6654b5867ebc15b487 /source/blender/windowmanager | |
parent | a5aa3ff7958ffb5e4778e7f09fcbbfe7f0296f65 (diff) |
Fix: rename to .blend1 as last before writing, after creating blend thumbnail.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 8a05e6c4916..deeb6ab154a 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -616,11 +616,12 @@ int WM_write_file(bContext *C, char *target, int fileflags, ReportList *reports) ED_object_exit_editmode(C, EM_DO_UNDO); ED_sculpt_force_update(C); - do_history(di, reports); - /* blend file thumbnail */ ibuf_thumb= blend_file_thumb(di, CTX_data_scene(C), &thumb); + /* rename to .blend1, do this as last before write */ + do_history(di, reports); + if (BLO_write_file(CTX_data_main(C), di, fileflags, reports, thumb)) { strcpy(G.sce, di); G.relbase_valid = 1; |