diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-16 18:34:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-16 18:34:48 +0400 |
commit | e0605cca9a09d9d33974f7beea3acbb1741b476e (patch) | |
tree | 518aff38245bf03acb7b3a5c252d6a5113dad1b3 /source | |
parent | 6e40088604b744eba4eb1775ac0776998d8a03cc (diff) |
fix error when a failed thumb overrides a newer good thumbnail.
on saving blend file remove failed thumb.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 0ffd9e00f7e..9ffea0e290b 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -805,6 +805,7 @@ int WM_write_file(bContext *C, const char *target, int fileflags, ReportList *re /* run this function after because the file cant be written before the blend is */ if (ibuf_thumb) { + IMB_thumb_delete(filepath, THB_FAIL); /* without this a failed thumb overrides */ ibuf_thumb = IMB_thumb_create(filepath, THB_NORMAL, THB_SOURCE_BLEND, ibuf_thumb); IMB_freeImBuf(ibuf_thumb); } |