gltf-bounding-box
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "gltf-bounding-box", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Computes the global bounding box of a gltf model", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -20,3 +20,3 @@ "use strict"; | ||
const positions = []; | ||
let positions = []; | ||
mesh.primitives.forEach((primitive) => { | ||
@@ -26,3 +26,3 @@ // Attributes | ||
positions.push(...gltfReader._loadAccessor( | ||
positions = positions.concat(gltfReader._loadAccessor( | ||
gltf, | ||
@@ -29,0 +29,0 @@ primitive.attributes.POSITION, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
20083
2609601