From e9f83f77bb5680df2529fbd188c626b5cde048f4 Mon Sep 17 00:00:00 2001 From: Saas Date: Sat, 4 Oct 2025 14:03:02 +0200 Subject: [PATCH] fix "Straighten Connections" to actually straighten all connections --- Source/Editor/Surface/VisjectSurface.Formatting.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/Surface/VisjectSurface.Formatting.cs b/Source/Editor/Surface/VisjectSurface.Formatting.cs index 39ac58242..e1b9a6777 100644 --- a/Source/Editor/Surface/VisjectSurface.Formatting.cs +++ b/Source/Editor/Surface/VisjectSurface.Formatting.cs @@ -176,10 +176,10 @@ namespace FlaxEditor.Surface if (connectedNodes.Count == 0) return; - for (int i = 0; i < connectedNodes.Count - 1; i++) + for (int i = 0; i < connectedNodes.Count; i++) { SurfaceNode nodeA = connectedNodes[i]; - List connectedOutputBoxes = nodeA.GetBoxes().Where(b => b.IsOutput && b.HasAnyConnection).ToList(); + List connectedOutputBoxes = nodeA.GetBoxes().Where(b => b.HasAnyConnection).ToList(); for (int j = 0; j < connectedOutputBoxes.Count; j++) {