mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-28 18:32:50 +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();
|
||||
// Show UI if the user specified it explicitly or the sprite sheet type wasn't specified.
|
||||
if (context->isUIAvailable() && params.ui() &&
|
||||
(params.ui.isSet() ||
|
||||
!params.type() == app::SpriteSheetType::None)) {
|
||||
(params.ui.isSet() || !params.type.isSet())) {
|
||||
// Copy document preferences to undefined params
|
||||
if (docPref.spriteSheet.defined(true) &&
|
||||
!params.type.isSet()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user