Conversion of "Toggle Link" tool to "Make Link"
This commit alters the behaviour of "Toggle Link" tool found in the node editor so that it only makes link between selected sockets. Links cannot be deleted by using the tool again as before. Instead deleting links can be done by using the old method (drag with lmb). The delete functionality may require further investigation to see if it should be improved.
This commit is contained in:
@@ -513,8 +513,8 @@ static void do_node_nodemenu(void *arg, int event)
|
||||
case 10: /* execute */
|
||||
addqueue(curarea->win, UI_BUT_EVENT, B_NODE_TREE_EXEC);
|
||||
break;
|
||||
case 11: /* toggle link */
|
||||
node_toggle_link(snode);
|
||||
case 11: /* make link */
|
||||
node_make_link(snode);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -541,7 +541,7 @@ static uiBlock *node_nodemenu(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, "Toggle Link|F", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 11, "");
|
||||
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Make Link|F", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 11, "");
|
||||
|
||||
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user