nodeviewscene: skip add duplicate edges

This commit is contained in:
itsmattkc
2021-05-28 17:53:15 +10:00
parent 2162e9d8f8
commit d9e45a6818
2 changed files with 13 additions and 5 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ public slots:
*/
void RemoveNode(Node* node);
void AddEdge(const NodeOutput& output, const NodeInput& input);
NodeViewEdge *AddEdge(const NodeOutput& output, const NodeInput& input);
void RemoveEdge(const NodeOutput& output, const NodeInput& input);
/**
@@ -109,7 +109,7 @@ public slots:
private:
static int DetermineWeight(Node* n);
void AddEdgeInternal(const NodeOutput &output, const NodeInput &input, NodeViewItem* from, NodeViewItem* to);
NodeViewEdge* AddEdgeInternal(const NodeOutput &output, const NodeInput &input, NodeViewItem* from, NodeViewItem* to);
QHash<Node*, NodeViewItem*> item_map_;