UI: Remove Redundant Hidden File Check for Linux/Mac #120711

Merged
Harley Acheson merged 1 commits from Harley/blender:LinuxHidden into main 2024-04-16 22:45:46 +02:00
1 changed files with 4 additions and 7 deletions

View File

@ -629,16 +629,13 @@ static bool is_filtered_hidden(const char *filename,
}
}
/* Check for _OUR_ "hidden" attribute. This not only mirrors OS-level hidden file
* attribute but is also set for Linux/Mac "dot" files. See `filelist_readjob_list_dir`.
*/
if ((filter->flags & FLF_HIDE_DOT) && (file->attributes & FILE_ATTR_HIDDEN)) {
return true; /* Ignore files with Hidden attribute. */
}
#ifndef WIN32
/* Check for unix-style names starting with period. */
if ((filter->flags & FLF_HIDE_DOT) && BLI_path_has_hidden_component(filename)) {
return true;
}
#endif
/* For data-blocks (but not the group directories), check the asset-only filter. */
if (!(file->typeflag & FILE_TYPE_DIR) && (file->typeflag & FILE_TYPE_BLENDERLIB) &&
(filter->flags & FLF_ASSETS_ONLY) && !(file->typeflag & FILE_TYPE_ASSET))