Change extension check

This commit is contained in:
Sean Lilley 2017-11-29 13:49:30 -05:00
parent 78a41c35a7
commit 0eddab51f9

View File

@ -502,7 +502,7 @@ function getMtlPaths(mtllibLine) {
var length = splits.length; var length = splits.length;
var startIndex = 0; var startIndex = 0;
for (var i = 0; i < length; ++i) { for (var i = 0; i < length; ++i) {
if (path.extname(splits[i]) === '') { if (path.extname(splits[i]) !== '.mtl') {
continue; continue;
} }
var mtlPath = splits.slice(startIndex, i + 1).join(' '); var mtlPath = splits.slice(startIndex, i + 1).join(' ');