[Bf-blender-cvs] [40e1e8ebed4] blender2.8: Despgraph: don't tag for transform/geometry update on relations rebuild.

Brecht Van Lommel noreply at git.blender.org
Wed Jun 20 18:14:34 CEST 2018


Commit: 40e1e8ebed4633df57eff505b31caca77572a3ac
Author: Brecht Van Lommel
Date:   Wed Jun 20 17:42:57 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB40e1e8ebed4633df57eff505b31caca77572a3ac

Despgraph: don't tag for transform/geometry update on relations rebuild.

This should already be happening elsewhere and was causing depsgraph
rebuild to be slower than it should.

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

M	source/blender/depsgraph/intern/builder/deg_builder.cc

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

diff --git a/source/blender/depsgraph/intern/builder/deg_builder.cc b/source/blender/depsgraph/intern/builder/deg_builder.cc
index 1b2dcd8fcf8..b6256e9ceb0 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder.cc
@@ -58,7 +58,7 @@ void deg_graph_build_finalize(Main *bmain, Depsgraph *graph)
 	foreach (IDDepsNode *id_node, graph->id_nodes) {
 		ID *id = id_node->id_orig;
 		id_node->finalize_build(graph);
-		int flag = DEG_TAG_TRANSFORM | DEG_TAG_GEOMETRY;
+		int flag = 0;
 		if ((id->recalc & ID_RECALC_ALL)) {
 			AnimData *adt = BKE_animdata_from_id(id);
 			if (adt != NULL && (adt->recalc & ADT_RECALC_ANIM) != 0) {
@@ -68,7 +68,9 @@ void deg_graph_build_finalize(Main *bmain, Depsgraph *graph)
 		if (!deg_copy_on_write_is_expanded(id_node->id_cow)) {
 			flag |= DEG_TAG_COPY_ON_WRITE;
 		}
-		DEG_id_tag_update_ex(bmain, id_node->id_orig, flag);
+		if (flag != 0) {
+			DEG_id_tag_update_ex(bmain, id_node->id_orig, flag);
+		}
 	}
 }



More information about the Bf-blender-cvs mailing list