diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-06-11 12:31:13 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-06-11 12:33:09 +0300 |
commit | df72101631097cd57a093645378e1de338f875e8 (patch) | |
tree | 5e8f069aadfd0eb28cce28620224affe89fd29a2 /source/blender/depsgraph/intern/depsgraph_tag.cc | |
parent | 4ac87d58eb8d0dd6cb9d4a857c8b5aca4c7abb64 (diff) |
Revert unintended changes to depsgraph
This partially reverts f8d7df6f162.
I committed this bit by mistake.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_tag.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index 437999a06a9..8ff11ca5fd2 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -449,7 +449,17 @@ void deg_graph_node_tag_zero(Main *bmain, Depsgraph *graph, IDDepsNode *id_node) GHASH_FOREACH_BEGIN(ComponentDepsNode *, comp_node, id_node->components) { if (comp_node->type == DEG_NODE_TYPE_ANIMATION) { - continue; + AnimData *adt = BKE_animdata_from_id(id); + /* NOTE: Animation data might be null if relations are tagged + * for update. + */ + if (adt == NULL || (adt->recalc & ADT_RECALC_ANIM) == 0) { + /* If there is no animation, or animation is not tagged for + * update yet, we don't force animation channel to be evaluated. + */ + continue; + } + id->recalc |= ID_RECALC_ANIMATION; } comp_node->tag_update(graph); } |