Fix (unreported) broken code in BKE_collection_object_cache_free.
This call should be recursive, only freeing cache of immediate parents of the collection is not enough, the whole parenting chain needs to be processed.
This commit is contained in:
@@ -898,7 +898,7 @@ void BKE_collection_object_cache_free(Collection *collection)
|
||||
collection_object_cache_free(collection);
|
||||
|
||||
LISTBASE_FOREACH (CollectionParent *, parent, &collection->runtime.parents) {
|
||||
collection_object_cache_free(parent->collection);
|
||||
BKE_collection_object_cache_free(parent->collection);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user