From 7a7ae4df436292345748ded71b2cefaf60a39fbd Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Wed, 24 Nov 2021 09:50:02 -0800 Subject: UI: Blend File Icons Thumbnail View Changes icon used to indicate blend file when overlaid over larger document icon when in thumbnail view. Only seen when file does not have a preview. Followup to {rB611e4ffaab43} For more details and examples see D13342 Differential Revision: https://developer.blender.org/D13342 Reviewed by Julian Eisel --- source/blender/editors/space_file/filelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_file') diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 51a5c451f6d..3e7a831691c 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -1351,7 +1351,7 @@ static int filelist_geticon_ex(const FileDirEntry *file, } if (typeflag & FILE_TYPE_BLENDER) { - return ICON_FILE_BLEND; + return (is_main || file->preview_icon_id) ? ICON_FILE_BLEND : ICON_BLENDER; } if (typeflag & FILE_TYPE_BLENDER_BACKUP) { return ICON_FILE_BACKUP; -- cgit v1.2.3