From 5a4dfe180958d023493fb5f90902e48a22e6e131 Mon Sep 17 00:00:00 2001 From: DKolter Date: Tue, 3 Jun 2025 14:56:57 +0200 Subject: [PATCH] Fix Path::circle artifact --- graphics/src/geometry/path.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graphics/src/geometry/path.rs b/graphics/src/geometry/path.rs index c4f51593..e72732ff 100644 --- a/graphics/src/geometry/path.rs +++ b/graphics/src/geometry/path.rs @@ -61,7 +61,10 @@ impl Path { /// Creates a new [`Path`] representing a circle given its center /// coordinate and its radius. pub fn circle(center: Point, radius: f32) -> Self { - Self::new(|p| p.circle(center, radius)) + Self::new(|p| { + p.circle(center, radius); + p.close(); + }) } /// Returns the internal [`lyon_path::Path`].