Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-02-15 18:20:50 +0300
committerTon Roosendaal <ton@blender.org>2008-02-15 18:20:50 +0300
commitde707a32be8f07dc826665c5f24bd8478503743c (patch)
treea915262a388613c09a40bddb2af3be58292b60ac /source/blender/src/header_node.c
parentb5437cc8a2fbc8d0d6c8bfad74e3b031ea855e93 (diff)
Simple but useful compositor feature:
CTRL+click on node will not only select it, but also connect the active viewer to the top output of the node. To evaluate: make viewing option to have this as a default on select. Could work nice for collapsed nodes.
Diffstat (limited to 'source/blender/src/header_node.c')
-rw-r--r--source/blender/src/header_node.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/src/header_node.c b/source/blender/src/header_node.c
index 3573f69898a..ffd8cd5fc4b 100644
--- a/source/blender/src/header_node.c
+++ b/source/blender/src/header_node.c
@@ -545,6 +545,9 @@ static void do_node_nodemenu(void *arg, int event)
case 13: /* read saved full sample layers */
node_read_fullsamplelayers(snode);
break;
+ case 14: /* connect viewer */
+ node_active_link_viewer(snode);
+ break;
}
@@ -590,6 +593,12 @@ static uiBlock *node_nodemenu(void *arg_unused)
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Execute Composite|E", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 10, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Read Saved Render Results|R", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 8, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Read Saved Full Sample Results|R", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 13, "");
+
+ uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
+
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Connect Node to Viewer|Ctrl LMB", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 14, "");
+
+ uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
}
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Show Cyclic Dependencies|C", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 9, "");