Skip to content

Commit

Permalink
fix loop
Browse files Browse the repository at this point in the history
  • Loading branch information
genbs committed Mar 19, 2021
1 parent 76b944b commit 2b692ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GCODEExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class GCODEExporter {
)

vertexIndex += 2
for (let len = currentIndexing.frameLength; vertexIndex < len; vertexIndex += 2) {
for (let len = vertexIndex - 2 + currentIndexing.frameLength; vertexIndex < len; vertexIndex += 2) {
const currentX = clamp(
settings.minX,
settings.maxX,
Expand Down

0 comments on commit 2b692ae

Please sign in to comment.