Fixed UX bug where WASD moves the cam during inputs

This commit is contained in:
2026-05-11 21:27:49 +02:00
parent 07cdd0a46f
commit 859db25d4f
+4
View File
@@ -15,6 +15,10 @@ public partial class Camera3d : Camera3D
public override void _Process(double delta) public override void _Process(double delta)
{ {
Control focused = GetViewport().GuiGetFocusOwner();
if (focused is LineEdit || focused is TextEdit)
return;
if (canMove) MoveCamera(delta); if (canMove) MoveCamera(delta);
} }