generated from krampus/template-godot4
Continuous line drawing also paints circle to round out edges
This commit is contained in:
parent
22984897e2
commit
37b377fac0
@ -120,9 +120,11 @@ func paint_continuous(point: Vector3, normal: Vector3, width: float) -> void:
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
_polyline_buffer = [px]
|
_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
|
_continued_paint_this_frame = true
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user