mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 14:59:50 +00:00
Fix painting with transparent color, opacity 255, Indexed color mode, in Alpha Compositing to behave as Simple Ink (fix #3047)
This commit is contained in:
parent
e12fb556c1
commit
ef31179934
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2018-2021 Igara Studio S.A.
|
// Copyright (C) 2018-2022 Igara Studio S.A.
|
||||||
// Copyright (C) 2001-2018 David Capello
|
// Copyright (C) 2001-2018 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
@ -148,8 +148,10 @@ public:
|
|||||||
// opaque if opacity == 255.
|
// opaque if opacity == 255.
|
||||||
if (m_type == Simple)
|
if (m_type == Simple)
|
||||||
opaque = true;
|
opaque = true;
|
||||||
else if (color == loop->sprite()->transparentColor())
|
else if (color == loop->sprite()->transparentColor() &&
|
||||||
|
loop->getLayer()->isTransparent()) {
|
||||||
opaque = false;
|
opaque = false;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
color = get_current_palette()->getEntry(color);
|
color = get_current_palette()->getEntry(color);
|
||||||
opaque = (rgba_geta(color) == 255);
|
opaque = (rgba_geta(color) == 255);
|
||||||
|
Loading…
Reference in New Issue
Block a user