[Bf-blender-cvs] [94e7ac5] master: Fix wrong usage of THB_NORMAL size when generating .blend file thumbnail at save time.
Bastien Montagne
noreply at git.blender.org
Fri Jun 5 19:43:20 CEST 2015
Commit: 94e7ac5b97dd0b15a53d47c78672b8ed1e8a4bf1
Author: Bastien Montagne
Date: Fri Jun 5 19:42:00 2015 +0200
Branches: master
https://developer.blender.org/rB94e7ac5b97dd0b15a53d47c78672b8ed1e8a4bf1
Fix wrong usage of THB_NORMAL size when generating .blend file thumbnail at save time.
We do not use that size of preview anymore, only THB_LARGE...
===================================================================
M source/blender/windowmanager/intern/wm_files.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index a3cbb2b..5bd2bb8 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -991,7 +991,7 @@ int wm_file_write(bContext *C, const char *filepath, int fileflags, ReportList *
/* 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);
+ ibuf_thumb = IMB_thumb_create(filepath, THB_LARGE, THB_SOURCE_BLEND, ibuf_thumb);
IMB_freeImBuf(ibuf_thumb);
}
More information about the Bf-blender-cvs
mailing list