From a74cec63693da1e2e6ecf00b25d5b47d5fcd7ac3 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 24 Oct 2019 19:01:18 -0300 Subject: [PATCH] Use "By Rows" as the default sprite sheet type in Export Sprite Sheet --- src/app/commands/cmd_export_sprite_sheet.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/commands/cmd_export_sprite_sheet.cpp b/src/app/commands/cmd_export_sprite_sheet.cpp index 23479a4bd..04e48534a 100644 --- a/src/app/commands/cmd_export_sprite_sheet.cpp +++ b/src/app/commands/cmd_export_sprite_sheet.cpp @@ -308,8 +308,14 @@ public: sheetType()->addItem(Strings::export_sprite_sheet_type_rows()); sheetType()->addItem(Strings::export_sprite_sheet_type_cols()); sheetType()->addItem(Strings::export_sprite_sheet_type_pack()); - if (params.type() != app::SpriteSheetType::None) - sheetType()->setSelectedItemIndex((int)params.type()-1); + { + int i; + if (params.type() != app::SpriteSheetType::None) + i = (int)params.type()-1; + else + i = ((int)app::SpriteSheetType::Rows)-1; + sheetType()->setSelectedItemIndex(i); + } constraintType()->addItem(Strings::export_sprite_sheet_constraint_fixed_none()); constraintType()->addItem(Strings::export_sprite_sheet_constraint_fixed_cols());