From 567939063ec2a5513a27310b34b2469265895237 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Tue, 12 Sep 2023 13:48:07 +0200 Subject: [PATCH] Cleanup --- base/Sources/arm/ui/UINodes.hx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/base/Sources/arm/ui/UINodes.hx b/base/Sources/arm/ui/UINodes.hx index 91245d5f8..bd9eca02b 100644 --- a/base/Sources/arm/ui/UINodes.hx +++ b/base/Sources/arm/ui/UINodes.hx @@ -104,9 +104,9 @@ class UINodes { if (linkDrag.to_id == -1 && n.inputs.length > 0) { linkDrag.to_id = n.id; var fromType = node.outputs[linkDrag.from_socket].type; - // 1. step: Connect to the first socket + // Connect to the first socket linkDrag.to_socket = 0; - // 2. step: Try to find the first type-matching socket and use it if present + // Try to find the first type-matching socket and use it if present for (socket in n.inputs) { if (socket.type == fromType) { linkDrag.to_socket = n.inputs.indexOf(socket); @@ -538,8 +538,6 @@ class UINodes { public function canvasChanged() { recompileMat = true; recompileMatFinal = true; - - trace(111); } function nodeSearch(x = -1, y = -1, done: Void->Void = null) {