Skip to content

Commit

Permalink
Fix Path.spawnVertex
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Feb 27, 2024
1 parent edfdb65 commit 601046b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1403,8 +1403,7 @@ export namespace Path {
)

if (curve.closed && vertices.length >= 1) {
const lastVertex = vertices.at(-1)!
vertices.unshift(lastVertex)
vertices.unshift(vertices.pop()!)
}

return {
Expand Down

0 comments on commit 601046b

Please sign in to comment.