[Bf-blender-cvs] [b1213e8cf91] master: Add comment about size of generated previews of filebrowser thumnails.
Bastien Montagne
noreply at git.blender.org
Mon Nov 2 15:11:26 CET 2020
Commit: b1213e8cf91667d6b35adade71c0511d0d7746b5
Author: Bastien Montagne
Date: Mon Nov 2 15:10:38 2020 +0100
Branches: master
https://developer.blender.org/rBb1213e8cf91667d6b35adade71c0511d0d7746b5
Add comment about size of generated previews of filebrowser thumnails.
===================================================================
M source/blender/editors/space_file/filelist.c
===================================================================
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index faa23bc4f83..465f05246ca 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -1294,6 +1294,8 @@ static void filelist_cache_preview_runf(TaskPool *__restrict pool, void *taskdat
}
IMB_thumb_path_lock(preview->path);
+ /* Always generate biggest preview size for now, it's simpler and avoids having to re-generate in
+ * case user switch to a biger preview size... */
preview->img = IMB_thumb_manage(preview->path, THB_LARGE, source);
IMB_thumb_path_unlock(preview->path);
More information about the Bf-blender-cvs
mailing list