diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-19 18:03:27 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-19 18:03:27 +0300 |
commit | b5e30e58e1c382b6fb87c65a0abd7a4d373d7f9c (patch) | |
tree | 069452385c2f80438aff01948da173c03f45deb5 | |
parent | 6cdc631d98f0f81dc9c7c07a122430ce285cc709 (diff) |
Todo item:
Compositor: if you have multiple Composite-Out nodes, a click will
activate it for use. Just like viewer nodes.
-rw-r--r-- | source/blender/editors/space_node/node_edit.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index 5dd4b9891a1..2a93eff9e9e 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -482,6 +482,16 @@ void node_set_active(SpaceNode *snode, bNode *node) scene->r.actlay= node->custom1; } } + else if(node->type==CMP_NODE_COMPOSITE) { + bNode *tnode; + + for(tnode= snode->edittree->nodes.first; tnode; tnode= tnode->next) + if( tnode->type==CMP_NODE_COMPOSITE) + tnode->flag &= ~NODE_DO_OUTPUT; + + node->flag |= NODE_DO_OUTPUT; + ED_node_changed_update(snode->id, node); + } } else if(snode->treetype==NTREE_TEXTURE) { // XXX |