From 8462f0e85ef4752c09b2019b1e736e34e6dc8161 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 6 Mar 2019 14:49:27 +0100 Subject: Fix (unreported) broken usercount of collections after duplication. Was missing proper flag in library_query code, collections are also id-users of their children collections. --- source/blender/blenkernel/intern/library_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/library_query.c') diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c index d4ded5458c1..267699b67c1 100644 --- a/source/blender/blenkernel/intern/library_query.c +++ b/source/blender/blenkernel/intern/library_query.c @@ -780,7 +780,7 @@ static void library_foreach_ID_link( CALLBACK_INVOKE(cob->ob, IDWALK_CB_USER); } for (CollectionChild *child = collection->children.first; child; child = child->next) { - CALLBACK_INVOKE(child->collection, IDWALK_CB_NEVER_SELF); + CALLBACK_INVOKE(child->collection, IDWALK_CB_NEVER_SELF | IDWALK_CB_USER); } for (CollectionParent *parent = collection->parents.first; parent; parent = parent->next) { CALLBACK_INVOKE(parent->collection, IDWALK_CB_NEVER_SELF); -- cgit v1.2.3