[Bf-blender-cvs] [bbadee6fc10] master: UI: Blend File Icons Thumbnail View
Harley Acheson
noreply at git.blender.org
Wed Nov 24 18:52:35 CET 2021
Commit: bbadee6fc10555327b1849027f2cb04c794173d9
Author: Harley Acheson
Date: Wed Nov 24 09:50:02 2021 -0800
Branches: master
https://developer.blender.org/rBbbadee6fc10555327b1849027f2cb04c794173d9
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
===================================================================
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 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;
More information about the Bf-blender-cvs
mailing list