Fix: crash after recent commit

This was a mistake in rBb67fe05d4bea2d3c9efbd127e9d9dc3a897e89e6.
This commit is contained in:
Jacques Lucke 2021-04-26 19:19:44 +02:00
parent 38bfa8902b
commit 49b3d00c10
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ void DepsgraphRelationBuilder::build_collection(LayerCollection *from_layer_coll
/* An instance is part of the geometry of the collection. */
if (cob->ob->type == OB_EMPTY) {
Collection *collection_instance = object->instance_collection;
Collection *collection_instance = cob->ob->instance_collection;
if (collection_instance != nullptr) {
OperationKey collection_instance_key{
&collection_instance->id, NodeType::GEOMETRY, OperationCode::GEOMETRY_EVAL_DONE};