From 1a1ddcb5e22b2e6ad4d7506c709ca93ca64096d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 19 Nov 2021 16:29:25 +0100 Subject: 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. --- source/blender/editors/space_file/filelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_file/filelist.c') 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; } -- cgit v1.2.3