Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2021-11-24 20:50:02 +0300
committerHarley Acheson <harley.acheson@gmail.com>2021-11-24 20:50:02 +0300
commit7a7ae4df436292345748ded71b2cefaf60a39fbd (patch)
tree19ff39004d79ccfa992dc4b5047edc78956764f7 /source/blender/editors/space_file
parent71c39a9e2ef300a1ca451f1080cf59dda94ef4a4 (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
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/filelist.c2
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 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;