mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-23 16:44:05 -05:00
Fix output file name
This commit is contained in:
parent
bedbb6ef96
commit
72c20eb6ee
@ -74,7 +74,7 @@ function convert(objPath, gltfPath, options) {
|
||||
}
|
||||
|
||||
var basePath = path.dirname(gltfPath);
|
||||
var modelName = path.basename(objPath, path.extname(objPath));
|
||||
var modelName = path.basename(gltfPath, path.extname(gltfPath));
|
||||
var extension = path.extname(gltfPath);
|
||||
if (extension === '.glb') {
|
||||
binary = true;
|
||||
|
Loading…
Reference in New Issue
Block a user