From acb246e26bf0685b78bf9d3efb131a83bf7163e7 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 19 Aug 2022 17:21:56 -0300 Subject: [PATCH] Add "Sprite Grid" source option to Export Sprite Sheet (fix #1982) In this way we can export each grid cell/tile as an individual sprite, and use the extrude option on each grid cell. We've added the --split-grid CLI option too. --- data/pref.xml | 1 + src/app/cli/app_options.cpp | 1 + src/app/cli/app_options.h | 2 + src/app/cli/cli_open_file.h | 1 + src/app/cli/cli_processor.cpp | 5 +++ src/app/commands/cmd_export_sprite_sheet.cpp | 25 +++++++++-- src/app/commands/cmd_export_sprite_sheet.h | 1 + src/app/doc_exporter.cpp | 47 +++++++++++++++----- src/app/doc_exporter.h | 17 ++++--- 9 files changed, 77 insertions(+), 23 deletions(-) diff --git a/data/pref.xml b/data/pref.xml index bc7fdac07..d59e8f464 100644 --- a/data/pref.xml +++ b/data/pref.xml @@ -540,6 +540,7 @@