UI: Remove Redundant Hidden File Check for Linux/Mac #120711
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue