From 5975d6581cee2f90289cfd4c0eaa9abc7e814e35 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 3 May 2018 12:43:32 +0200 Subject: Depsgraph: Tag IDs for animation update on visible update Without this it's quite unpredictable what state of unkeyed changes datablock will end up with. --- source/blender/depsgraph/intern/depsgraph_tag.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/depsgraph/intern/depsgraph_tag.cc') diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index 15993a0a35c..466e6053ef3 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -496,7 +496,7 @@ void deg_graph_on_visible_update(Main *bmain, Depsgraph *graph) /* Make sure objects are up to date. */ foreach (DEG::IDDepsNode *id_node, graph->id_nodes) { const ID_Type id_type = GS(id_node->id_orig->name); - int flag = 0; + int flag = DEG_TAG_TIME | DEG_TAG_COPY_ON_WRITE; /* We only tag components which needs an update. Tagging everything is * not a good idea because that might reset particles cache (or any * other type of cache). @@ -504,7 +504,7 @@ void deg_graph_on_visible_update(Main *bmain, Depsgraph *graph) * TODO(sergey): Need to generalize this somehow. */ if (id_type == ID_OB) { - flag |= OB_RECALC_OB | OB_RECALC_DATA | DEG_TAG_COPY_ON_WRITE; + flag |= OB_RECALC_OB | OB_RECALC_DATA; } deg_graph_id_tag_update(bmain, graph, id_node->id_orig, flag); } -- cgit v1.2.3