Merge branch 'foliage-gizmo-resize' of https://github.com/Tryibion/FlaxEngine into Tryibion-foliage-gizmo-resize

This commit is contained in:
Wojtek Figat
2024-08-15 14:13:19 +02:00

View File

@@ -197,6 +197,12 @@ namespace FlaxEditor.Tools.Foliage
{
PaintEnd();
}
// Increase or decrease brush size with scroll
if (Input.GetKey(KeyboardKeys.Shift) && !Input.GetMouseButton(MouseButton.Right))
{
Mode.CurrentBrush.Size += dt * Mode.CurrentBrush.Size * Input.Mouse.ScrollDelta * 5f;
}
// Perform detailed tracing to find cursor location for the foliage placement
var mouseRay = Owner.MouseRay;