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
|
// Check if user is pressing control
|
||||||
if (Root.GetKey(KeyboardKeys.Control))
|
if (Root.GetKey(KeyboardKeys.Control))
|
||||||
{
|
{
|
||||||
// Add to selection
|
// Add/remove from selection
|
||||||
if (!controlUnderMouse.IsSelected)
|
controlUnderMouse.IsSelected = !controlUnderMouse.IsSelected;
|
||||||
{
|
SelectionChanged?.Invoke();
|
||||||
AddToSelection(controlUnderMouse);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Check if node isn't selected
|
// Check if node isn't selected
|
||||||
else if (!controlUnderMouse.IsSelected)
|
else if (!controlUnderMouse.IsSelected)
|
||||||
|
|||||||
Reference in New Issue
Block a user