Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-05-03 13:43:32 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-05-03 13:55:01 +0300
commit5975d6581cee2f90289cfd4c0eaa9abc7e814e35 (patch)
tree5ba90d4e7d65fcae3c59e0f009f748c462818c9f /source/blender/depsgraph/intern/depsgraph_tag.cc
parentef94415060dc35be9ea0c2c0cb3b8033c592fde7 (diff)
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.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_tag.cc')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_tag.cc4
1 files changed, 2 insertions, 2 deletions
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);
}