Skip to content

Commit

Permalink
Merge pull request #760 from jonobr1/756-subdivide
Browse files Browse the repository at this point in the history
Last Point Subdivision Amendment
  • Loading branch information
jonobr1 authored Feb 9, 2025
2 parents 1e11d78 + eebbd6c commit cdd370f
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 93 deletions.
3 changes: 1 addition & 2 deletions src/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -941,10 +941,9 @@ export class Path extends Shape {
v.command = Commands.line;
}
});
} else if (closed) {
points.push(new Anchor(a.x, a.y));
}

points.push(new Anchor(a.x, a.y));
points[points.length - 1].command = closed
? Commands.close
: Commands.line;
Expand Down
Loading

0 comments on commit cdd370f

Please sign in to comment.