mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-23 08:34:14 -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 startIndex = 0;
|
||||
for (var i = 0; i < length; ++i) {
|
||||
if (path.extname(splits[i]) === '') {
|
||||
if (path.extname(splits[i]) !== '.mtl') {
|
||||
continue;
|
||||
}
|
||||
var mtlPath = splits.slice(startIndex, i + 1).join(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user