diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-23 13:18:11 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-23 13:18:59 +0300 |
commit | f19e8eaa4b529988e89d5c2e2965728351bc3465 (patch) | |
tree | 1370dc86bfbfca4fc2d991a37759d68cdd842710 /source/blender/depsgraph/intern | |
parent | cd289f6ea5bb56115d8482aacaba65a98b658efc (diff) |
Depsgraph: Avoid redundant copy-on-write relations
Was adding some relations twice. Harmless, but means extra stuff to do
when evaluating the scene.
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index ea5a5c0c2d7..9a59dd46759 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -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"); } |