mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-02 11:59:58 +00:00
Fix exporting slices data in JSON files on Export Sprite Sheet
This commit is contained in:
parent
54e8a59cbd
commit
5ad681281d
@ -678,6 +678,7 @@ void ExportSpriteSheetCommand::onExecute(Context* context)
|
||||
innerPadding = MID(0, innerPadding, 100);
|
||||
bool listLayers = docPref.spriteSheet.listLayers();
|
||||
bool listFrameTags = docPref.spriteSheet.listFrameTags();
|
||||
bool listSlices = docPref.spriteSheet.listSlices();
|
||||
|
||||
if (context->isUIAvailable() && askOverwrite) {
|
||||
if (!ask_overwrite(true, filename,
|
||||
@ -755,10 +756,9 @@ void ExportSpriteSheetCommand::onExecute(Context* context)
|
||||
exporter.setBorderPadding(borderPadding);
|
||||
exporter.setShapePadding(shapePadding);
|
||||
exporter.setInnerPadding(innerPadding);
|
||||
if (listLayers)
|
||||
exporter.setListLayers(true);
|
||||
if (listFrameTags)
|
||||
exporter.setListFrameTags(true);
|
||||
if (listLayers) exporter.setListLayers(true);
|
||||
if (listFrameTags) exporter.setListFrameTags(true);
|
||||
if (listSlices) exporter.setListSlices(true);
|
||||
exporter.addDocument(document, frameTag,
|
||||
(!selLayers.empty() ? &selLayers: nullptr),
|
||||
(!selFrames.empty() ? &selFrames: nullptr));
|
||||
|
Loading…
Reference in New Issue
Block a user