Fix #761 - Gltf export doesn't do anything

This commit is contained in:
JannisX11 2020-11-08 22:46:06 +01:00
parent 89c526f715
commit 74bc5243fd

View File

@ -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) {