Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Sep 12, 2023
1 parent 1355925 commit 5679390
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions base/Sources/arm/ui/UINodes.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 5679390

Please sign in to comment.