From 0fc60168e80c9e0161b098414f9f1eff6e4ff127 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 18 May 2024 15:01:21 +0300 Subject: [PATCH] Fix polygon select tool circle radius not scaling properly with zoom --- src/Tools/SelectionTools/PolygonSelect.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tools/SelectionTools/PolygonSelect.gd b/src/Tools/SelectionTools/PolygonSelect.gd index c271f5420..32cc32b6b 100644 --- a/src/Tools/SelectionTools/PolygonSelect.gd +++ b/src/Tools/SelectionTools/PolygonSelect.gd @@ -74,7 +74,7 @@ func draw_preview() -> void: for line in _create_polylines(indicator): canvas.draw_polyline(PackedVector2Array(line), Color.BLACK) - var circle_radius := Global.camera.zoom * 10 + var circle_radius := Global.camera.zoom / 10.0 circle_radius.x = clampf(circle_radius.x, 2, circle_radius.x) circle_radius.y = clampf(circle_radius.y, 2, circle_radius.y)