diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2021-11-24 20:50:02 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2021-11-24 20:52:27 +0300 |
commit | bbadee6fc10555327b1849027f2cb04c794173d9 (patch) | |
tree | 91f34f8afb139d604f9e70da89a6e0fb5c92030f | |
parent | 338408772a077089482de4d99c68126f6b931c21 (diff) |
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
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index d4e9118960a..3e48c2a5d87 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -1367,7 +1367,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; |