mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Ignore empty tiles when exporting tilesets and the "Ignore Empty" checkbox is checked (fix #3789)
This commit is contained in:
parent
a7e155a391
commit
7422abf490
@ -1068,6 +1068,13 @@ void DocExporter::captureSamples(Samples& samples,
|
|||||||
alreadyTrimmed = true;
|
alreadyTrimmed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// If "Ignore Empty" is checked and the item is a tile...
|
||||||
|
else if (m_ignoreEmptyCels && item.isOneImageOnly()) {
|
||||||
|
// Skip empty tile
|
||||||
|
if (is_empty_image(item.image.get()))
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!alreadyTrimmed && m_trimSprite)
|
if (!alreadyTrimmed && m_trimSprite)
|
||||||
sample.setTrimmedBounds(spriteBounds);
|
sample.setTrimmedBounds(spriteBounds);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user