Fix T55868: duplicating collection instances fails sometimes.

This commit is contained in:
Brecht Van Lommel 2018-07-09 15:36:06 +02:00
parent e8bc8bf618
commit edeb9e5b01
Notes: blender-bot 2023-02-14 05:36:13 +01:00
Referenced by issue #55868, Duplicates immediately become Orphan Data
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ static bool collection_object_add(Main *bmain, Collection *collection, Object *o
{
if (ob->dup_group) {
/* Cyclic dependency check. */
if (collection_find_child_recursive(collection, ob->dup_group)) {
if (collection_find_child_recursive(ob->dup_group, collection)) {
return false;
}
}