Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-11-19 18:29:25 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-11-19 18:29:25 +0300
commit1a1ddcb5e22b2e6ad4d7506c709ca93ca64096d3 (patch)
tree7cc270f47c1c0e2f933404e39e00727f96879cea /source/blender/editors/space_file/filelist.c
parent06ead314b63f068ae9deaed369021b01aa5f1029 (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.
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r--source/blender/editors/space_file/filelist.c2
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;
}