Fix check for SpriteSheetType param in ExportSpriteSheet command

This commit is contained in:
David Capello 2019-01-09 10:16:51 -03:00
parent 4dd7febb99
commit f4878c7bb8

View File

@ -636,8 +636,7 @@ void ExportSpriteSheetCommand::onExecute(Context* context)
bool askOverwrite = params.askOverwrite(); bool askOverwrite = params.askOverwrite();
// Show UI if the user specified it explicitly or the sprite sheet type wasn't specified. // Show UI if the user specified it explicitly or the sprite sheet type wasn't specified.
if (context->isUIAvailable() && params.ui() && if (context->isUIAvailable() && params.ui() &&
(params.ui.isSet() || (params.ui.isSet() || !params.type.isSet())) {
!params.type() == app::SpriteSheetType::None)) {
// Copy document preferences to undefined params // Copy document preferences to undefined params
if (docPref.spriteSheet.defined(true) && if (docPref.spriteSheet.defined(true) &&
!params.type.isSet()) { !params.type.isSet()) {