nodeview: allow users to place a node on an edge to automatically connect it

between the two nodes

UI convenience. Edge highlights when the cursor is in range to perform this
action.
This commit is contained in:
itsmattkc
2020-02-16 12:40:12 +11:00
parent a987899e5c
commit ce889f68d5
6 changed files with 111 additions and 8 deletions
+8
View File
@@ -45,6 +45,14 @@ NodeEdgeRemoveCommand::NodeEdgeRemoveCommand(NodeOutput *output, NodeInput *inpu
{
}
NodeEdgeRemoveCommand::NodeEdgeRemoveCommand(NodeEdgePtr edge, QUndoCommand *parent) :
QUndoCommand(parent),
output_(edge->output()),
input_(edge->input()),
done_(false)
{
}
void NodeEdgeRemoveCommand::redo()
{
if (done_) {