Merge branch 'terrain-gizmo-shift' of https://github.com/Tryibion/FlaxEngine into Tryibion-terrain-gizmo-shift

This commit is contained in:
Wojtek Figat
2024-08-15 14:15:33 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}