diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-23 16:24:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-23 16:26:50 +0300 |
commit | b4b745b72064ee7d3d8b0245ac8e8358b7fd07a3 (patch) | |
tree | 17b5f9ee992e632546a504b9c75554e1e48dc6d1 /source/blender/depsgraph/intern | |
parent | 6afccf63485d4b8578ab9e647b1d57349f1b9b17 (diff) |
Depsgraph: refresh RNA that doesn't need a full rebuild
Fixes bug with changes to properties not being flushed to the COW data.
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index edb2969fa63..10edc17e94e 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -2134,7 +2134,8 @@ void DepsgraphRelationBuilder::build_copy_on_write_relations(IDDepsNode *id_node */ OperationDepsNode *op_entry = comp_node->get_entry_operation(); if (op_entry != NULL) { - graph_->add_new_relation(op_cow, op_entry, "CoW Dependency"); + DepsRelation *rel = graph_->add_new_relation(op_cow, op_entry, "CoW Dependency"); + rel->flag |= DEPSREL_FLAG_NO_FLUSH; } /* All dangling operations should also be executed after copy-on-write. */ GHASH_FOREACH_BEGIN(OperationDepsNode *, op_node, comp_node->operations_map) @@ -2158,7 +2159,8 @@ void DepsgraphRelationBuilder::build_copy_on_write_relations(IDDepsNode *id_node } } if (!has_same_comp_dependency) { - graph_->add_new_relation(op_cow, op_node, "CoW Dependency"); + DepsRelation *rel_sub = graph_->add_new_relation(op_cow, op_node, "CoW Dependency"); + rel_sub->flag |= DEPSREL_FLAG_NO_FLUSH; } } } |