Fix Visject surface select with Control to toggle selection of the node
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user