1
1

Fix (unreported) potential bug in collections parenting update code.

Own mistake in rB2ef192a55b2c. Did not seem to have any visible effect
though...
This commit is contained in:
2021-12-22 17:50:10 +01:00
parent f577abc5cd
commit 921708fc76

View File

@@ -1618,7 +1618,7 @@ static void collection_parents_rebuild_recursive(Collection *collection)
LISTBASE_FOREACH (CollectionChild *, child, &collection->children) {
/* See comment above in `BKE_collection_parent_relations_rebuild`. */
if ((collection->id.tag & (LIB_TAG_NO_MAIN | LIB_TAG_COPIED_ON_WRITE)) != 0) {
if ((child->collection->id.tag & (LIB_TAG_NO_MAIN | LIB_TAG_COPIED_ON_WRITE)) != 0) {
continue;
}
collection_parents_rebuild_recursive(child->collection);