diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-06 16:49:27 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-06 17:19:29 +0300 |
commit | 8462f0e85ef4752c09b2019b1e736e34e6dc8161 (patch) | |
tree | 18b2c35abeb7dbd76aba53e853d572b4aebd29c4 | |
parent | 702e7bfd5c27fe5d11c54e402e94c5bee9a1194e (diff) |
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.
-rw-r--r-- | source/blender/blenkernel/intern/library_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |