bin script tweaks

This commit is contained in:
Sean Lilley 2017-07-24 21:32:51 -04:00
parent 3b4e30d5e3
commit 8d491afc70

View File

@ -131,29 +131,16 @@ if (!defined(gltfPath)) {
gltfPath = path.join(path.dirname(objPath), modelName + extension);
}
var options = {
binary : argv.binary,
separate : argv.separate,
separateTextures : argv.separateTextures,
checkTransparency : argv.checkTransparency,
secure : argv.secure,
inputUpAxis : argv.inputUpAxis,
outputUpAxis : argv.outputUpAxis,
packOcclusion : argv.packOcclusion,
metallicRoughness : argv.metallicRoughness,
specularGlossiness : argv.specularGlossiness
};
console.time('Total');
try {
obj2gltf(objPath, gltfPath, options)
obj2gltf(objPath, gltfPath, argv)
.then(function() {
console.timeEnd('Total');
})
.catch(function(error) {
console.log(error);
console.log(error.message);
});
} catch(error) {
console.log(error);
console.log(error.message);
}