From f2a13b64d489830b5c426e0d12a899dc54920b5c Mon Sep 17 00:00:00 2001 From: Saas Date: Sat, 14 Mar 2026 19:00:12 +0100 Subject: [PATCH] fix reroute node output box moving on connection change --- Source/Editor/Surface/Archetypes/Tools.cs | 6 ++++++ Source/Editor/Surface/SurfaceNode.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Editor/Surface/Archetypes/Tools.cs b/Source/Editor/Surface/Archetypes/Tools.cs index cc6820020..bd5818693 100644 --- a/Source/Editor/Surface/Archetypes/Tools.cs +++ b/Source/Editor/Surface/Archetypes/Tools.cs @@ -1179,6 +1179,12 @@ namespace FlaxEditor.Surface.Archetypes _footerRect = Rectangle.Empty; } + /// + public override void Resize(float width, float height) + { + // Do nothing so the input and output boxes do not change position + } + /// public override void Draw() { diff --git a/Source/Editor/Surface/SurfaceNode.cs b/Source/Editor/Surface/SurfaceNode.cs index 9a1fd2ef4..9fb6dfbbd 100644 --- a/Source/Editor/Surface/SurfaceNode.cs +++ b/Source/Editor/Surface/SurfaceNode.cs @@ -181,7 +181,7 @@ namespace FlaxEditor.Surface /// /// The width. /// The height. - public void Resize(float width, float height) + public virtual void Resize(float width, float height) { if (Surface == null) return;