From ee6ef85326ea7f6269ebf51ae60a1bcc97b8b964 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 29 Jul 2021 22:56:53 +0200 Subject: [PATCH] Fix creating reroute nodes in Visject during debugging --- Source/Editor/Surface/VisjectSurface.Input.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Surface/VisjectSurface.Input.cs b/Source/Editor/Surface/VisjectSurface.Input.cs index 9b96aa165..d6820614f 100644 --- a/Source/Editor/Surface/VisjectSurface.Input.cs +++ b/Source/Editor/Surface/VisjectSurface.Input.cs @@ -275,7 +275,7 @@ namespace FlaxEditor.Surface if (!handled) CustomMouseDoubleClick?.Invoke(ref location, button, ref handled); - if (!handled) + if (!handled && CanEdit) { var mousePos = _rootControl.PointFromParent(ref _mousePos); if (IntersectsConnection(mousePos, out InputBox inputBox, out OutputBox outputBox))