Fixes to optimize option

This commit is contained in:
Shehzan Mohammed 2017-02-20 10:56:34 -05:00
parent cba9df6434
commit a1fe8005d1
3 changed files with 4 additions and 4 deletions

View File

@ -41,8 +41,8 @@ Using obj2gltf as a command-line tool:
|`-o`|Directory or filename for the exported glTF file.|No|
|`-b`|Output binary glTF.|No, default `false`|
|`-s`|Writes out separate geometry/animation data files, shader files, and textures instead of embedding them in the glTF file.|No, default `false`|
|`-p`|Use the optimization stages in the glTF pipeline|No, default `false`|
|`-t`|Write out separate textures only.|No, default `false`|
|`-z`|Use the optimization stages in the glTF pipeline|No, default `false`|
|`--ao`|Apply ambient occlusion to the converted model.|No, default `false`|
|`-h`|Display help|No|

View File

@ -50,9 +50,9 @@ var argv = yargs
type: 'boolean'
},
'optimize': {
alias: 'p',
alias: 'z',
default: false,
describe: 'Turn the optimization pipeline stages on/off to preserve the original glTF hierarchy.',
describe: 'Use the optimization stages in the glTF pipeline.',
type: 'boolean'
},
'cesium': {

View File

@ -54,7 +54,7 @@ function convert(objPath, gltfPath, options) {
createDirectory : false,
basePath : basePath,
textureCompressionOptions : textureCompressionOptions,
preserve : optimize
preserve : !optimize
};
return loadObj(objPath)