Fix: File Browser: Hiding dot-prefixed data-blocks

When file browsing inside a blend file's contents, allow the optional
hiding or showing of data blocks that have names that start with dot.

Pull Request: https://projects.blender.org/blender/blender/pulls/138875
This commit is contained in:
RedMser
2025-05-22 19:46:59 +02:00
committed by Harley Acheson
parent c31a1729bd
commit 85dcfe70bc

View File

@@ -3253,6 +3253,10 @@ static void filelist_readjob_list_lib_add_datablock(FileListReadJob *job_params,
if (datablock_info) {
entry->blenderlib_has_no_preview = datablock_info->no_preview_found;
if (datablock_info->name[0] == '.') {
entry->attributes |= FILE_ATTR_HIDDEN;
}
if (datablock_info->asset_data) {
entry->typeflag |= FILE_TYPE_ASSET;