diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-06-01 16:38:03 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-06-01 16:38:03 +0400 |
commit | 17935168c07937f9b1d1db1874a9f7ba5d3ae540 (patch) | |
tree | f3240b63a6eb251254435878727091fe923002e7 /source/blender/nodes/composite/node_composite_tree.c | |
parent | 5fbeda7efd62e251dac2af881de9fe042f30a7a7 (diff) |
Reroute nodes, by Jeroen Bakker (patch #28443).
By holding shift and "cutting" a node link a new reroute helper node can be inserted. This consists of a single socket that can be used to insert additional connection points into a link. This can be used to keep a connection point in the tree when deleting a node, or to control the path of long connections for layout cleanup.
Diffstat (limited to 'source/blender/nodes/composite/node_composite_tree.c')
-rw-r--r-- | source/blender/nodes/composite/node_composite_tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/composite/node_composite_tree.c b/source/blender/nodes/composite/node_composite_tree.c index 5bc2e1fc004..8f8f702e8ae 100644 --- a/source/blender/nodes/composite/node_composite_tree.c +++ b/source/blender/nodes/composite/node_composite_tree.c @@ -162,11 +162,11 @@ static void localize(bNodeTree *localtree, bNodeTree *ntree) } } - /* replace muted nodes by internal links */ + /* replace muted nodes and reroute nodes by internal links */ for (node= localtree->nodes.first; node; node= node_next) { node_next = node->next; - if (node->flag & NODE_MUTED) { + if (node->flag & NODE_MUTED || node->type == NODE_REROUTE) { /* make sure the update tag isn't lost when removing the muted node. * propagate this to all downstream nodes. */ |