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

@@ -442,6 +442,15 @@ namespace FlaxEditor.Windows
return true;
}
if (buttons == MouseButton.Left)
{
if (Editor.StateMachine.CurrentState.CanEditScene)
{
Editor.SceneEditing.Deselect();
}
return true;
}
return false;
}