mirror of https://github.com/CesiumGS/obj2gltf.git
Fix bug with no materials
This commit is contained in:
parent
2d6e0d16c9
commit
20deda83e3
|
@ -291,13 +291,11 @@ function getImages(inputPath, materials) {
|
|||
}
|
||||
|
||||
function getMaterials(mtlPath, hasMaterialGroups) {
|
||||
if (!hasMaterialGroups) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (defined(mtlPath)) {
|
||||
if (hasMaterialGroups && defined(mtlPath)) {
|
||||
return Material.parse(mtlPath);
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
function getObjInfo(objFile, inputPath) {
|
||||
|
|
Loading…
Reference in New Issue