Skip to content

Commit

Permalink
Restore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott committed Nov 28, 2024
1 parent 67e74b8 commit aa735d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extras/exporters/gltf-exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,8 @@ class GltfExporter extends CoreExporter {

// Position accessor also requires min and max properties
if (element.name === SEMANTIC_POSITION) {
// compute min and max from positions, as the BoundingBox stores center and extents,
// and we get precision warnings from gltf validator
const positions = [];
mesh.getPositions(positions);
const min = new Vec3();
Expand Down

0 comments on commit aa735d8

Please sign in to comment.