[Bf-blender-cvs] [8462f0e85ef] master: Fix (unreported) broken usercount of collections after duplication.

Bastien Montagne noreply at git.blender.org
Wed Mar 6 15:40:02 CET 2019


Commit: 8462f0e85ef4752c09b2019b1e736e34e6dc8161
Author: Bastien Montagne
Date:   Wed Mar 6 14:49:27 2019 +0100
Branches: master
https://developer.blender.org/rB8462f0e85ef4752c09b2019b1e736e34e6dc8161

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.

===================================================================

M	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);



More information about the Bf-blender-cvs mailing list