mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 05:42:32 +00:00
"horizontal" must be the default sprite sheet type (as in old versions)
This commit is contained in:
parent
b6fce0b1df
commit
258f85aafb
@ -239,10 +239,6 @@ void CliProcessor::process(Context* ctx)
|
|||||||
m_exporter->setTextureHeight(strtol(value.value().c_str(), NULL, 0));
|
m_exporter->setTextureHeight(strtol(value.value().c_str(), NULL, 0));
|
||||||
}
|
}
|
||||||
// --sheet-type <sheet-type>
|
// --sheet-type <sheet-type>
|
||||||
// TODO Implement this parameter (never documented, but it's
|
|
||||||
// shown in --help), anyway some work needed to move the
|
|
||||||
// sprite sheet size calculation from ExportSpriteSheetCommand
|
|
||||||
// to DocExporter
|
|
||||||
else if (opt == &m_options.sheetType()) {
|
else if (opt == &m_options.sheetType()) {
|
||||||
if (value.value() == "horizontal")
|
if (value.value() == "horizontal")
|
||||||
sheetType = SpriteSheetType::Horizontal;
|
sheetType = SpriteSheetType::Horizontal;
|
||||||
@ -568,8 +564,10 @@ void CliProcessor::process(Context* ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_exporter) {
|
if (m_exporter) {
|
||||||
if (sheetType != SpriteSheetType::None)
|
// Horizontal sprite sheet as the default type
|
||||||
m_exporter->setSpriteSheetType(sheetType);
|
if (sheetType == SpriteSheetType::None)
|
||||||
|
sheetType = SpriteSheetType::Horizontal;
|
||||||
|
m_exporter->setSpriteSheetType(sheetType);
|
||||||
|
|
||||||
m_delegate->exportFiles(ctx, *m_exporter.get());
|
m_delegate->exportFiles(ctx, *m_exporter.get());
|
||||||
m_exporter.reset(nullptr);
|
m_exporter.reset(nullptr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user