[Bf-blender-cvs] [5975d6581ce] blender2.8: Depsgraph: Tag IDs for animation update on visible update

Sergey Sharybin noreply at git.blender.org
Thu May 3 12:55:18 CEST 2018


Commit: 5975d6581cee2f90289cfd4c0eaa9abc7e814e35
Author: Sergey Sharybin
Date:   Thu May 3 12:43:32 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB5975d6581cee2f90289cfd4c0eaa9abc7e814e35

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.

===================================================================

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 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);
 	}



More information about the Bf-blender-cvs mailing list