From 37b377fac09114eb9150450f9f2c90f6403da49a Mon Sep 17 00:00:00 2001 From: Rob Kelly Date: Sun, 2 Mar 2025 12:04:54 -0700 Subject: [PATCH] Continuous line drawing also paints circle to round out edges --- src/world/gunk_body/gunk_body.gd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/world/gunk_body/gunk_body.gd b/src/world/gunk_body/gunk_body.gd index f587966..f542292 100644 --- a/src/world/gunk_body/gunk_body.gd +++ b/src/world/gunk_body/gunk_body.gd @@ -120,9 +120,11 @@ func paint_continuous(point: Vector3, normal: Vector3, width: float) -> void: ) else: _polyline_buffer = [px] - mask_control.queue_draw( - func() -> void: mask_control.draw_circle(px, width, MASK_COLOR, true, -1, true) - ) + + # Always paint a circle, to round out corners & cap ends + mask_control.queue_draw( + func() -> void: mask_control.draw_circle(px, width, MASK_COLOR, true, -1, true) + ) _continued_paint_this_frame = true