From 9d7d66f2350415b40217003f0147c58cc2c0ccfa Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sat, 10 Aug 2024 09:19:34 -0500 Subject: [PATCH] Add check for not having right mouse button down for changing terrain gizmo sizes. --- Source/Editor/Tools/Terrain/PaintTerrainGizmo.cs | 2 +- Source/Editor/Tools/Terrain/SculptTerrainGizmo.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/Tools/Terrain/PaintTerrainGizmo.cs b/Source/Editor/Tools/Terrain/PaintTerrainGizmo.cs index 447e45b81..65c7eb956 100644 --- a/Source/Editor/Tools/Terrain/PaintTerrainGizmo.cs +++ b/Source/Editor/Tools/Terrain/PaintTerrainGizmo.cs @@ -151,7 +151,7 @@ namespace FlaxEditor.Tools.Terrain } // Increase or decrease brush size with scroll - if (Input.GetKey(KeyboardKeys.Shift)) + if (Input.GetKey(KeyboardKeys.Shift) && !Input.GetMouseButton(MouseButton.Right)) { Mode.CurrentBrush.Size += dt * Mode.CurrentBrush.Size * Input.Mouse.ScrollDelta * 5f; } diff --git a/Source/Editor/Tools/Terrain/SculptTerrainGizmo.cs b/Source/Editor/Tools/Terrain/SculptTerrainGizmo.cs index f5feef3d2..4a7ba4eaa 100644 --- a/Source/Editor/Tools/Terrain/SculptTerrainGizmo.cs +++ b/Source/Editor/Tools/Terrain/SculptTerrainGizmo.cs @@ -159,7 +159,7 @@ namespace FlaxEditor.Tools.Terrain } // Increase or decrease brush size with scroll - if (Input.GetKey(KeyboardKeys.Shift)) + if (Input.GetKey(KeyboardKeys.Shift) && !Input.GetMouseButton(MouseButton.Right)) { Mode.CurrentBrush.Size += dt * Mode.CurrentBrush.Size * Input.Mouse.ScrollDelta * 5f; }