Skip to content

Commit

Permalink
Merge branch 'master' of [email protected]:aseprite/aseprite.git
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Mar 17, 2015
2 parents 4421f4c + 5ef4cb1 commit b4d3e56
Show file tree
Hide file tree
Showing 26 changed files with 339 additions and 468 deletions.
15 changes: 15 additions & 0 deletions data/pref.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
<value id="CHECKED_4x4" value="2" />
<value id="CHECKED_2x2" value="3" />
</enum>
<enum id="SpriteSheetType">
<value id="NONE" value="0" />
<value id="HORIZONTAL_STRIP" value="1" />
<value id="VERTICAL_STRIP" value="2" />
<value id="MATRIX" value="3" />
</enum>
</types>

<global>
Expand Down Expand Up @@ -133,6 +139,15 @@
<option id="opacity_step" type="int" default="28" migrate="Onionskin.OpacityStep" />
<option id="type" type="OnionskinType" default="OnionskinType::MERGE" migrate="Onionskin.Type" />
</section>
<section id="sprite_sheet">
<option id="type" type="SpriteSheetType" default="SpriteSheetType::NONE" />
<option id="columns" type="int" default="0" />
<option id="width" type="int" default="0" />
<option id="height" type="int" default="0" />
<option id="best_fit" type="bool" default="false" />
<option id="texture_filename" type="std::string" />
<option id="data_filename" type="std::string" />
</section>
</document>

</preferences>
9 changes: 6 additions & 3 deletions data/widgets/export_sprite_sheet.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- ASEPRITE -->
<!-- Copyright (C) 2001-2014 by David Capello -->
<!-- Copyright (C) 2001-2015 by David Capello -->
<gui>
<window id="export_sprite_sheet" text="Export Sprite Sheet">
<grid columns="4">
Expand All @@ -18,8 +18,11 @@
<hbox id="best_fit_filler" />
<check cell_hspan="3" id="best_fit" text="Best fit for texture" />

<label text="Export Action:" />
<combobox id="export_action" cell_hspan="3" />
<label text="Save As:" />
<button id="image_filename" cell_hspan="3" />

<check id="data_enabled" text="JSON Data:" />
<button id="data_filename" cell_hspan="3" />

<hbox cell_hspan="4">
<boxfiller />
Expand Down
3 changes: 2 additions & 1 deletion src/app/cmd/add_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ namespace cmd {
void onExecute() override;
void onUndo() override;
size_t onMemSize() const override {
return sizeof(*this);
return sizeof(*this) +
(m_addCel ? m_addCel->memSize() : 0);
}

private:
Expand Down
Loading

0 comments on commit b4d3e56

Please sign in to comment.