diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-11-19 18:29:25 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-11-19 18:29:25 +0300 |
commit | 1a1ddcb5e22b2e6ad4d7506c709ca93ca64096d3 (patch) | |
tree | 7cc270f47c1c0e2f933404e39e00727f96879cea | |
parent | 06ead314b63f068ae9deaed369021b01aa5f1029 (diff) |
Asset Browser: don't display linked-in asset datablocks
Datablocks marked as asset, linked from another file, were shown in the
"Current File" asset library. This is now resolved.
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 481f1f8e240..51a5c451f6d 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -3696,7 +3696,7 @@ static void filelist_readjob_main_assets_add_items(FileListReadJob *job_params, BKE_main_lock(job_params->current_main); FOREACH_MAIN_ID_BEGIN (job_params->current_main, id_iter) { - if (!id_iter->asset_data) { + if (!id_iter->asset_data || ID_IS_LINKED(id_iter)) { continue; } |