Fix editor inputs processing in Game window to interferer with game inputs

This commit is contained in:
Wojtek Figat
2024-02-26 12:06:59 +01:00
parent 607859c196
commit 996a2cb09e

View File

@@ -306,8 +306,6 @@ namespace FlaxEditor.Windows
InputActions.Add(options => options.TakeScreenshot, () => Screenshot.Capture(string.Empty));
InputActions.Add(options => options.DebuggerUnlockMouse, UnlockMouseInPlay);
InputActions.Add(options => options.ToggleFullscreen, () => { if (Editor.IsPlayMode) IsMaximized = !IsMaximized; });
FlaxEditor.Utilities.Utils.SetupCommonInputActions(this);
}
private void ChangeViewportRatio(ViewportScaleOptions v)
@@ -320,7 +318,7 @@ namespace FlaxEditor.Windows
return;
}
if (string.Equals(v.Label, "Free Aspect") && v.Size == new Int2(1, 1))
if (string.Equals(v.Label, "Free Aspect", StringComparison.Ordinal) && v.Size == new Int2(1, 1))
{
_freeAspect = true;
_useAspect = true;