Depsgraph: Avoid redundant copy-on-write relations

Was adding some relations twice. Harmless, but means extra stuff to do
when evaluating the scene.
This commit is contained in:
Sergey Sharybin 2018-04-23 12:18:11 +02:00
parent cd289f6ea5
commit f19e8eaa4b
1 changed files with 3 additions and 0 deletions

View File

@ -2009,6 +2009,9 @@ void DepsgraphRelationBuilder::build_copy_on_write_relations(IDDepsNode *id_node
/* All dangling operations should also be executed after copy-on-write. */
GHASH_FOREACH_BEGIN(OperationDepsNode *, op_node, comp_node->operations_map)
{
if (op_node == op_entry) {
continue;
}
if (op_node->inlinks.size() == 0) {
graph_->add_new_relation(op_cow, op_node, "CoW Dependency");
}