Skip to content

Commit

Permalink
fix(EntityModel): make sure to have unique indices when generating ftl
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Oct 15, 2023
1 parent 9a3fdcd commit 4a7a692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EntityModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ export class EntityModel {
})

if (i % 3 === 0) {
faceIndexes.push([idx, -1, -1])
faceIndexes.push([-1, -1, i])
} else {
faceIndexes[faceIndexes.length - 1][i % 3] = idx
faceIndexes[faceIndexes.length - 1][2 - (i % 3)] = i
}
})

Expand Down

0 comments on commit 4a7a692

Please sign in to comment.