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:
Bastien Montagne
2023-04-25 12:45:18 +02:00
parent 94a93b9290
commit 250d35928e

View File

@@ -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);
}
}