[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45699] trunk/blender/source/blender/ windowmanager/intern/wm_files.c: fix error when a failed thumb overrides a newer good thumbnail.
Campbell Barton
ideasman42 at gmail.com
Mon Apr 16 16:34:49 CEST 2012
Revision: 45699
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45699
Author: campbellbarton
Date: 2012-04-16 14:34:48 +0000 (Mon, 16 Apr 2012)
Log Message:
-----------
fix error when a failed thumb overrides a newer good thumbnail.
on saving blend file remove failed thumb.
Modified Paths:
--------------
trunk/blender/source/blender/windowmanager/intern/wm_files.c
Modified: trunk/blender/source/blender/windowmanager/intern/wm_files.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_files.c 2012-04-16 14:27:22 UTC (rev 45698)
+++ trunk/blender/source/blender/windowmanager/intern/wm_files.c 2012-04-16 14:34:48 UTC (rev 45699)
@@ -805,6 +805,7 @@
/* 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);
}
More information about the Bf-blender-cvs
mailing list