mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Minor change in DocExporter
This commit is contained in:
parent
1c39d907cb
commit
00cdda7b85
@ -944,6 +944,7 @@ void DocExporter::captureSamples(Samples& samples,
|
||||
ASSERT(done || (!done && tag));
|
||||
}
|
||||
|
||||
bool alreadyTrimmed = false;
|
||||
if (!done && (m_ignoreEmptyCels || m_trimCels)) {
|
||||
// Ignore empty cels
|
||||
if (layer && layer->isImage() && !cel && m_ignoreEmptyCels)
|
||||
@ -1007,11 +1008,10 @@ void DocExporter::captureSamples(Samples& samples,
|
||||
frameBounds = gfx::Rect(posTopLeft, posBottomRight);
|
||||
}
|
||||
sample.setTrimmedBounds(frameBounds);
|
||||
alreadyTrimmed = true;
|
||||
}
|
||||
else if (m_trimSprite)
|
||||
sample.setTrimmedBounds(spriteBounds);
|
||||
}
|
||||
else if (m_trimSprite)
|
||||
if (!alreadyTrimmed && m_trimSprite)
|
||||
sample.setTrimmedBounds(spriteBounds);
|
||||
|
||||
samples.addSample(sample);
|
||||
|
Loading…
Reference in New Issue
Block a user