From ddc5fda173289aed7859155d20b3f1e0a0696b30 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Tue, 20 Oct 2026 01:44:34 +0700 Subject: [PATCH] path.join: a single path closed at coinciding ends is closed before its merged anchor is smoothed (#2982) --- crates/engine/src/cmd/path.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/engine/src/cmd/path.rs b/crates/engine/src/cmd/path.rs index e421c157e..7a671478a 100644 --- a/crates/engine/src/cmd/path.rs +++ b/crates/engine/src/cmd/path.rs @@ -448,6 +448,8 @@ fn join(s: &mut Session, p: &Value) -> Result { && let Some(first) = sp.anchors.first_mut() { first.h_in = last.h_in; + // Closed first, so the merged anchor smooths between both its neighbours. + sp.closed = true; if let Some(smooth) = join_kind { join_point(sp, 0, smooth); }