[Bf-blender-cvs] [a9ecfc96534] blender2.8: Fix T56347: Driven values not supported in node groups.

Bastien Montagne noreply at git.blender.org
Thu Aug 23 15:20:50 CEST 2018


Commit: a9ecfc965349241b858b1b23d0a3d9b987600b5d
Author: Bastien Montagne
Date:   Thu Aug 23 15:19:08 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBa9ecfc965349241b858b1b23d0a3d9b987600b5d

Fix T56347: Driven values not supported in node groups.

Need to rebuild dependency graph when we add or remove nodes from a tree...

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

M	source/blender/editors/space_node/node_group.c

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

diff --git a/source/blender/editors/space_node/node_group.c b/source/blender/editors/space_node/node_group.c
index a3294211ff9..4012cfdaebc 100644
--- a/source/blender/editors/space_node/node_group.c
+++ b/source/blender/editors/space_node/node_group.c
@@ -50,6 +50,8 @@
 #include "BKE_main.h"
 #include "BKE_report.h"
 
+#include "DEG_depsgraph_build.h"
+
 #include "ED_node.h"  /* own include */
 #include "ED_screen.h"
 #include "ED_render.h"
@@ -961,6 +963,7 @@ static int node_group_make_exec(bContext *C, wmOperator *op)
 
 	snode_notify(C, snode);
 	snode_dag_update(C, snode);
+	DEG_relations_tag_update(bmain);  /* We broke relations in node tree, need to rebuild them in the grahes. */
 
 	return OPERATOR_FINISHED;
 }



More information about the Bf-blender-cvs mailing list