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
This commit is contained in:
parent
338408772a
commit
bbadee6fc1
Notes:
blender-bot
2023-02-14 04:40:22 +01:00
Referenced by issue #93368, File Browser drag and drop not working (when dragging with Display as Thumbnails)
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue