Skip to content

Commit

Permalink
Fix crash when exporting bbmodel files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Dec 12, 2024
1 parent ccc2c45 commit 827bb99
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ private void generateMesh(Identifier type, BoxBuilder box) {

Map<Vert, UUID> verticesCache = quads.stream()
.flatMap(quad -> Arrays.stream(quad.rect().getVertices()))
.distinct()
.collect(Collectors.toMap(Function.identity(), vv -> UUID.randomUUID()));

buffer.object(elementJson, "faces", buffer.of(facesJson -> {
Expand Down

0 comments on commit 827bb99

Please sign in to comment.