From 3229bde954bcb67bb36a4cfa4c3f0d7d8bbdaf2f Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Sat, 22 Jun 2024 01:30:49 +0200 Subject: [PATCH] UI: Fix Minimum File Type Icon Size in File Browser File browser can now show thumbnail view in a larger range of sizes. Unfortunately there is a lower bound currently set on the icon that is shown in the middle of the "document" that assumes 64 is the smallest (the old minimum). This causes these icons to overflow below 64. Just something that was missed when we allowed smaller sizes. This small change supports down to 16. Pull Request: https://projects.blender.org/blender/blender/pulls/122811 --- source/blender/editors/space_file/file_draw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_file/file_draw.cc b/source/blender/editors/space_file/file_draw.cc index 89617e04740..c60fff634d4 100644 --- a/source/blender/editors/space_file/file_draw.cc +++ b/source/blender/editors/space_file/file_draw.cc @@ -1145,7 +1145,7 @@ void file_draw_list(const bContext *C, ARegion *region) bool do_drag; uchar text_col[4]; const bool draw_columnheader = (params->display == FILE_VERTICALDISPLAY); - const float thumb_icon_aspect = std::min(64.0f / float(params->thumbnail_size), 1.0f); + const float thumb_icon_aspect = std::min(64.0f / float(params->thumbnail_size), 2.0f); numfiles = filelist_files_ensure(files);