VectorCraft: An open-source, vector art tool written by scratch in pure Rust
path.join: a single path closed at coinciding ends is closed before its merged anchor is smoothed (#2982)
bflatasticddc5fda17328
diff --git a/crates/engine/src/cmd/path.rs b/crates/engine/src/cmd/path.rsindex 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<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);}