diff options
author | Ton Roosendaal <ton@blender.org> | 2006-12-09 00:20:36 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-12-09 00:20:36 +0300 |
commit | 7f1e3874f9924bd9abf5b3a875c1c673eb33daa1 (patch) | |
tree | 7e767a2f80e8777d3a4f6e36fdd17128ef893cb6 /source/blender/src/header_node.c | |
parent | 00becf015baabbea382fdb3f0c8afe1555a20456 (diff) |
Node editing usablity!
- Removed stupid idea to insert convertor nodes in Node Shaders, when a
link is created by non-matching sockets. Now it works like Compositor,
doing a default conversion. Works like this:
1 from 3 or 4 values: take average
3 from 1: copy to all
3 from 4: copy 3
4 from 1: copy to 3, set alpha to 1
4 from 3: copy 3, set alpha to 1
- Added select-linked in Nodes. Lkey or Shift+L. Also in pulldown menus
Diffstat (limited to 'source/blender/src/header_node.c')
-rw-r--r-- | source/blender/src/header_node.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/src/header_node.c b/source/blender/src/header_node.c index 51629fb0a98..a873f779b34 100644 --- a/source/blender/src/header_node.c +++ b/source/blender/src/header_node.c @@ -163,6 +163,12 @@ static void do_node_selectmenu(void *arg, int event) case 2: /* select/deselect all */ node_deselectall(snode, 1); break; + case 3: /* select linked in */ + node_select_linked(snode, 0); + break; + case 4: /* select linked out */ + node_select_linked(snode, 1); + break; } allqueue(REDRAWNODE, 0); } @@ -181,6 +187,8 @@ static uiBlock *node_selectmenu(void *arg_unused) uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Select/Deselect All|A", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 2, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Select Linked From|L", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 3, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Select Linked To|Shift L", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 4, ""); if(curarea->headertype==HEADERTOP) { uiBlockSetDirection(block, UI_DOWN); |