Fix #761 - Gltf export doesn't do anything
This commit is contained in:
parent
89c526f715
commit
74bc5243fd
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user