[Bf-blender-cvs] [46a256b5d1a] blender2.8: Depsgraph: Make it possible to check for ID directly tagged for animation recalc
Sergey Sharybin
noreply at git.blender.org
Thu Apr 26 17:24:13 CEST 2018
Commit: 46a256b5d1a105ed07f4817fc74cfc52266dd50a
Author: Sergey Sharybin
Date: Thu Apr 26 17:22:17 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB46a256b5d1a105ed07f4817fc74cfc52266dd50a
Depsgraph: Make it possible to check for ID directly tagged for animation recalc
===================================================================
M 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 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
More information about the Bf-blender-cvs
mailing list