[Bf-blender-cvs] [51d161a89ef] master: Depsgraph: Use proper tag source for special case

Sergey Sharybin noreply at git.blender.org
Mon Feb 11 15:24:17 CET 2019


Commit: 51d161a89efc6325a1fbf5afb39c1bfee00d51cb
Author: Sergey Sharybin
Date:   Mon Feb 11 15:16:38 2019 +0100
Branches: master
https://developer.blender.org/rB51d161a89efc6325a1fbf5afb39c1bfee00d51cb

Depsgraph: Use proper tag source for special case

Special case of handling update tag of 0 was using wrong update
source, causing unwanted point cache resets on file load.

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

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 adadd9b741d..474bbd7b3e9 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -460,7 +460,7 @@ void deg_graph_node_tag_zero(Main *bmain,
 		if (comp_node->type == NodeType::ANIMATION) {
 			continue;
 		}
-		comp_node->tag_update(graph, DEG_UPDATE_SOURCE_USER_EDIT);
+		comp_node->tag_update(graph, update_source);
 	}
 	GHASH_FOREACH_END();
 	deg_graph_id_tag_legacy_compat(



More information about the Bf-blender-cvs mailing list