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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user