mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-04 13:59:46 +00:00
Fix bug introduced in a2cbf3f285
: trim transparent layers correctly
This commit is contained in:
parent
b519901cef
commit
91bacca270
@ -402,8 +402,11 @@ void DocumentExporter::captureSamples(Samples& samples)
|
||||
doc::color_t refColor = 0;
|
||||
|
||||
if (m_trimCels) {
|
||||
if (sprite->backgroundLayer() &&
|
||||
sprite->backgroundLayer()->isVisible()) {
|
||||
if ((layer &&
|
||||
layer->isBackground()) ||
|
||||
(!layer &&
|
||||
sprite->backgroundLayer() &&
|
||||
sprite->backgroundLayer()->isVisible())) {
|
||||
refColor = get_pixel(sampleRender, 0, 0);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user