added deselecting nodes when left clicking in blank area in the scene and prefab tree views

This commit is contained in:
Chandler Cox
2022-10-29 09:22:39 -05:00
parent 40a04bc5d6
commit 50414d7fed
2 changed files with 15 additions and 0 deletions

View File

@@ -260,6 +260,12 @@ namespace FlaxEditor.Windows.Assets
ShowContextMenu(Parent, ref locationCM);
return true;
}
if (button == MouseButton.Left && _treePanel.ContainsPoint(ref location))
{
_tree.Deselect();
return true;
}
return false;
}