From 002aac08e86be4309143b34ce397f2686b1eecdd Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sat, 10 Aug 2024 09:31:00 -0500 Subject: [PATCH] Add resizing foliage paint gizmo with shift scroll. --- Source/Editor/Tools/Foliage/PaintFoliageGizmo.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Editor/Tools/Foliage/PaintFoliageGizmo.cs b/Source/Editor/Tools/Foliage/PaintFoliageGizmo.cs index 8d20e3119..66c845a04 100644 --- a/Source/Editor/Tools/Foliage/PaintFoliageGizmo.cs +++ b/Source/Editor/Tools/Foliage/PaintFoliageGizmo.cs @@ -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;