Skip to content

Commit 71b0102

Browse files
committed
Fixed bug in build from prev commit.
1 parent 56432aa commit 71b0102

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/aframe-tilemap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ _aframe2.default.registerComponent('tilemap-instanced', {
530530
tile.entity.el.object3D.traverse(function (mesh) {
531531
if (mesh.type !== 'Mesh') return;
532532

533-
var geometry = mesh.geometry instanceof THREE.BufferGeometry ? new THREE.BufferGeometry().copy(mesh.geometry) : new THREE.BufferGeometry().fromGeometry(mesh.geometry);
533+
var geometry = mesh.geometry.type === 'BufferGeometry' ? new THREE.BufferGeometry().copy(mesh.geometry) : new THREE.BufferGeometry().fromGeometry(mesh.geometry);
534534

535535
mesh.updateMatrixWorld();
536536
var matrix = new THREE.Matrix4().copy(invMatrixWorld).multiply(mesh.matrixWorld);

0 commit comments

Comments
 (0)