path.join: a single path closed at coinciding ends is closed before its merged anchor is smoothed (#2982)

This commit is contained in:
bflatastic
2026-10-20 01:48:35 +07:00
parent 4b8e42e517
commit ddc5fda173
+2
View File
@@ -448,6 +448,8 @@ fn join(s: &mut Session, p: &Value) -> Result<Value> {
&& 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);
}