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
This commit is contained in:
2006-12-08 21:20:36 +00:00
parent 00becf015b
commit 7f1e3874f9
7 changed files with 152 additions and 50 deletions

View File

@@ -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);