diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-08-06 22:49:28 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-08-06 22:49:28 +0400 |
commit | f961afece0a7bbcf758234bdf19cd35eae30dea2 (patch) | |
tree | 9a02a8c1b3e9ebde23e6166ddf609341f96be98f /source/blender/nodes/intern/node_common.h | |
parent | e276a7c8058d146f81ce08f12a0c45f77906515b (diff) |
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.
Diffstat (limited to 'source/blender/nodes/intern/node_common.h')
-rw-r--r-- | source/blender/nodes/intern/node_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |