mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-26 18:56:55 -06:00
path.join: a single path closed at coinciding ends is closed before its merged anchor is smoothed (#2982)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user