mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 03:44:16 +00:00
Use grid bounds by default in Import Sprite Sheet (fix #1207)
This commit is contained in:
parent
ed7a1ef1cc
commit
0c6802cd30
@ -290,7 +290,7 @@
|
||||
</section>
|
||||
<section id="import_sprite_sheet">
|
||||
<option id="type" type="app::SpriteSheetType" default="app::SpriteSheetType::Rows" />
|
||||
<option id="bounds" type="gfx::Rect" default="gfx::Rect(0, 0, 16, 16)" />
|
||||
<option id="bounds" type="gfx::Rect" default="gfx::Rect(0, 0, 0, 0)" />
|
||||
<option id="partial_tiles" type="bool" default="false" />
|
||||
</section>
|
||||
<section id="preview" text="Preview">
|
||||
|
@ -217,7 +217,11 @@ private:
|
||||
else
|
||||
sheetType()->setSelectedItemIndex((int)app::SpriteSheetType::Rows-1);
|
||||
|
||||
onChangeRectangle(m_docPref->importSpriteSheet.bounds());
|
||||
gfx::Rect defBounds = m_docPref->importSpriteSheet.bounds();
|
||||
if (defBounds.isEmpty())
|
||||
defBounds = m_docPref->grid.bounds();
|
||||
onChangeRectangle(defBounds);
|
||||
|
||||
partialTiles()->setSelected(m_docPref->importSpriteSheet.partialTiles());
|
||||
onEntriesChange();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user