瀏覽代碼

[graph] Fix creating box from link when the input was already connected

Clément Espeute 6 月之前
父節點
當前提交
c50e57733d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hide/view/GraphEditor.hx

+ 1 - 1
hide/view/GraphEditor.hx

@@ -1236,7 +1236,7 @@ class GraphEditor extends hide.comp.Component {
 		var previousFrom : Null<Int> = outputsToInputs.getLeft(input);
 		var prevEdge = null;
 		if (previousFrom != null && doAdd) {
-			prevEdge = edgeFromPack(previousFrom, edgeCreationInput);
+			prevEdge = edgeFromPack(previousFrom, input);
 		}
 
 		if (editor.canAddEdge(edge)) {