UI: Remove Redundant Hidden File Check for Linux/Mac
Removal of an unnecessary check for hidden "dot" files on Linux/Mac. This check is not needed here because the same call is used earlier - in filelist_readjob_list_dir - which would have set FILE_ATTR_HIDDEN for dot files. Pull Request: https://projects.blender.org/blender/blender/pulls/120711
This commit is contained in:
committed by
Harley Acheson
parent
38f70e9cf2
commit
6091127a29
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user