Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/GLTFExporter.js
Original file line number Diff line number Diff line change
@@ -1292,7 +1292,9 @@ GLTFExporter.prototype = {
modifiedAttribute.array.forEach((v, i) => {

if (isCube) {
var map = mesh.material[Math.floor(i / 12)].map;
var map = mesh.material instanceof Array
? mesh.material[Math.floor(i / 12)].map
: mesh.material.map;
}
if (map && map.image) {
if (i%2 == 0) {

0 comments on commit 74bc524

Please sign in to comment.