[Bf-blender-cvs] [7a7ae4df436] blender-v3.0-release: UI: Blend File Icons Thumbnail View
Harley Acheson
noreply at git.blender.org
Wed Nov 24 18:50:47 CET 2021
Commit: 7a7ae4df436292345748ded71b2cefaf60a39fbd
Author: Harley Acheson
Date: Wed Nov 24 09:50:02 2021 -0800
Branches: blender-v3.0-release
https://developer.blender.org/rB7a7ae4df436292345748ded71b2cefaf60a39fbd
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 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;
More information about the Bf-blender-cvs
mailing list