From f961afece0a7bbcf758234bdf19cd35eae30dea2 Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Mon, 6 Aug 2012 18:49:28 +0000 Subject: Fix for incomplete Reroute node updates. Adding reroute nodes by spliting links would often result in unrelated color sockets or otherwise miss updates. The reason is that the per-node updates used for Reroute node type inheritance are not supposed to be looking at connected nodes, they are purely for "local" updates. For this sort of "global" update which requires depth-first search, the update function on the node tree level must be used instead. --- source/blender/nodes/intern/node_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/nodes/intern/node_common.h') diff --git a/source/blender/nodes/intern/node_common.h b/source/blender/nodes/intern/node_common.h index f1bb837e483..00f72469b0f 100644 --- a/source/blender/nodes/intern/node_common.h +++ b/source/blender/nodes/intern/node_common.h @@ -59,4 +59,6 @@ void node_group_edit_clear(bNode *node); void node_loop_update_tree(struct bNodeTree *ngroup); +void ntree_update_reroute_nodes(struct bNodeTree *ntree); + #endif -- cgit v1.2.3