mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 06:50:07 +00:00
Fix check for SpriteSheetType param in ExportSpriteSheet command
This commit is contained in:
parent
4dd7febb99
commit
f4878c7bb8
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user