Closed haroel closed 5 years ago
it should be this
for (const materialName in mtl.materials) {
if (!mtl.materials.hasOwnProperty(materialName)) {
continue;
}
const material = mtl.materials[materialName];
for (const attr of mapAttributes) {
const mapData = material[attr];
// check if mapData.filename isnot empty
if (!mapData **|| !mapData.filename** ) {
continue;
}
Hi @haroel, thank you for filing this issue.
I'm not quite understanding. Could you provide the error that is occurring either by pasting the text or a screenshot of the console error?
Closing, unless more information can be provided.