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-04-26 18:22:17 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-04-26 18:22:17 +0300
commit46a256b5d1a105ed07f4817fc74cfc52266dd50a (patch)
treee0344250cad1dfe718bc954d95e1cc00c30164f6 /source/blender/depsgraph/intern
parent67b014af484ad4ba6667e3cf9907422bedc8238a (diff)
Depsgraph: Make it possible to check for ID directly tagged for animation recalc
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_tag.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index 826194c09a3..7c49cb5100d 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -376,6 +376,15 @@ void deg_graph_id_tag_update_single_flag(Main *bmain,
DepsNodeFactory *factory = deg_type_get_factory(component_type);
BLI_assert(factory != NULL);
id->recalc |= factory->id_recalc_tag();
+ /* NOTE: This way we clearly separate direct animation recalc flag from
+ * a flushed one. Needed for auto-keyframe hack feature.
+ *
+ * TODO(sergey): Find a more generic way to set/access direct tagged ID
+ * recalc flags.
+ */
+ if (tag == DEG_TAG_TIME) {
+ id->recalc |= ID_RECALC_TIME;
+ }
/* Some sanity checks before moving forward. */
if (id_node == NULL) {
/* Happens when object is tagged for update and not yet in the