[Bf-blender-cvs] [4bd014e951a] blender2.8: Depsgraph: Fix crash in masking, related on T52749

Sergey Sharybin noreply at git.blender.org
Thu Sep 14 13:23:59 CEST 2017


Commit: 4bd014e951a1b2c30e035a24eda3fbb32f3fdd62
Author: Sergey Sharybin
Date:   Thu Sep 14 16:23:16 2017 +0500
Branches: blender2.8
https://developer.blender.org/rB4bd014e951a1b2c30e035a24eda3fbb32f3fdd62

Depsgraph: Fix crash in masking, related on T52749

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

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 839865d0dfb..7bea24d9fd8 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -365,6 +365,10 @@ void deg_graph_on_visible_update(Main *bmain, Scene *scene, Depsgraph *graph)
 	GHASH_FOREACH_BEGIN(DEG::IDDepsNode *, id_node, graph->id_hash)
 	{
 		const ID_Type id_type = GS(id_node->id_orig->name);
+		/* TODO(sergey): Special exception for now. */
+		if (id_type == ID_MSK) {
+			deg_graph_id_tag_update(bmain, graph, id_node->id_orig, 0);
+		}
 		if (id_type != ID_OB) {
 			/* Ignore non-object nodes on visibility changes. */
 			continue;



More information about the Bf-blender-cvs mailing list