mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-15 19:52:05 +00:00
Fix crash using --trim without --split-layers
This commit is contained in:
parent
fe0b970131
commit
a2cbf3f285
@ -395,10 +395,13 @@ void DocumentExporter::captureSamples(Samples& samples)
|
||||
doc::color_t refColor = 0;
|
||||
|
||||
if (m_trimCels) {
|
||||
if (layer->isBackground())
|
||||
if (sprite->backgroundLayer() &&
|
||||
sprite->backgroundLayer()->isVisible()) {
|
||||
refColor = get_pixel(sampleRender, 0, 0);
|
||||
else
|
||||
}
|
||||
else {
|
||||
refColor = sprite->transparentColor();
|
||||
}
|
||||
}
|
||||
else if (m_ignoreEmptyCels)
|
||||
refColor = sprite->transparentColor();
|
||||
|
Loading…
Reference in New Issue
Block a user