From 7404bf23de82518969ea7a76aff9d56790d2bfb2 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Wed, 1 Nov 2023 17:30:29 +0200 Subject: [PATCH] Fix ellipses with sizes larger than 11px sometimes producing gaps Their thickness seemed incorrect too, this commit also fixed that --- src/Tools/EllipseTool.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tools/EllipseTool.gd b/src/Tools/EllipseTool.gd index e8d18838f..e5e0a7829 100644 --- a/src/Tools/EllipseTool.gd +++ b/src/Tools/EllipseTool.gd @@ -12,7 +12,7 @@ func _get_shape_points(shape_size: Vector2i) -> Array[Vector2i]: var size_offset := Vector2i.ONE * (_thickness - 1) var new_size := shape_size + size_offset - var inner_ellipse_size := new_size - size_offset + var inner_ellipse_size := new_size - 2 * size_offset # The inner ellipse is to small to create a gap in the middle of the ellipse, # just return a filled ellipse