diff options
author | Andrea Weikert <elubie@gmx.net> | 2010-03-15 23:28:13 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2010-03-15 23:28:13 +0300 |
commit | 8fdb4d45063f01be975cf3c6351607115a0b8d4e (patch) | |
tree | d23e627f659b2718de89f442c167b37e838a26d6 /source/blender/editors/space_file/file_draw.c | |
parent | ae6ee27d37f94a5c26cdf6060d71c5b6bc209a0e (diff) |
Fix [#21618] Wrong Icon For BLEND file on File/Append
While the folder icon was originally planned when in append/link mode, it's easier to distinguish with a blender icon, so the folder icon is now replaced.
Also fixed issue introduced in rev. 27491 where filter settings were incorrectly set when moving out of .blend file again.
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index a2b4dcbac60..63729f03e58 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -298,6 +298,9 @@ static int get_file_icon(struct direntry *file) if ( strcmp(file->relname, "..") == 0) { return ICON_FILE_PARENT; } + if(file->flags & BLENDERFILE) { + return ICON_FILE_BLEND; + } return ICON_FILE_FOLDER; } else if (file->flags & BLENDERFILE) |