diff options
author | Ton Roosendaal <ton@blender.org> | 2006-11-17 00:50:35 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-11-17 00:50:35 +0300 |
commit | f89b0522623929580d59c2d518837d216cc51961 (patch) | |
tree | 672946af488f5ab1109bbc092b50f362bc1a03a9 /source/blender/src/editnode.c | |
parent | d59224377c15d671e5030b5de2690fc68b9c5d6d (diff) |
New Compo node: the Split-Viewer, showing two images halves to compare.
Works internally already with masks, so we can have several builtin
types.
Diffstat (limited to 'source/blender/src/editnode.c')
-rw-r--r-- | source/blender/src/editnode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editnode.c b/source/blender/src/editnode.c index 416de1e7b69..d3135f5b412 100644 --- a/source/blender/src/editnode.c +++ b/source/blender/src/editnode.c @@ -429,12 +429,12 @@ static void node_set_active(SpaceNode *snode, bNode *node) } else if(snode->treetype==NTREE_COMPOSIT) { /* make active viewer, currently only 1 supported... */ - if(node->type==CMP_NODE_VIEWER) { + if( ELEM(node->type, CMP_NODE_VIEWER, CMP_NODE_SPLITVIEWER)) { bNode *tnode; int was_output= node->flag & NODE_DO_OUTPUT; for(tnode= snode->edittree->nodes.first; tnode; tnode= tnode->next) - if(tnode->type==CMP_NODE_VIEWER) + if( ELEM(tnode->type, CMP_NODE_VIEWER, CMP_NODE_SPLITVIEWER)) tnode->flag &= ~NODE_DO_OUTPUT; node->flag |= NODE_DO_OUTPUT; |