From 6a0c734cecbb94bcb6ad4b14a9c86e8a665d4048 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 3 Jun 2025 14:51:31 +0200 Subject: [PATCH] Fix Visject surface select with Control to toggle selection of the node --- Source/Editor/Surface/VisjectSurface.Input.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Source/Editor/Surface/VisjectSurface.Input.cs b/Source/Editor/Surface/VisjectSurface.Input.cs index 95610b73c..a874db681 100644 --- a/Source/Editor/Surface/VisjectSurface.Input.cs +++ b/Source/Editor/Surface/VisjectSurface.Input.cs @@ -488,11 +488,9 @@ namespace FlaxEditor.Surface // Check if user is pressing control if (Root.GetKey(KeyboardKeys.Control)) { - // Add to selection - if (!controlUnderMouse.IsSelected) - { - AddToSelection(controlUnderMouse); - } + // Add/remove from selection + controlUnderMouse.IsSelected = !controlUnderMouse.IsSelected; + SelectionChanged?.Invoke(); } // Check if node isn't selected else if (!controlUnderMouse.IsSelected)