mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-27 02:24:04 -05:00
Change extension check
This commit is contained in:
parent
78a41c35a7
commit
0eddab51f9
@ -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(' ');
|
||||||
|
Loading…
Reference in New Issue
Block a user