mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Ignore current ink mode for custom brushes
This commit is contained in:
parent
88930a6d69
commit
a4db7ff0eb
@ -58,27 +58,19 @@ public:
|
||||
|
||||
int depth = MID(0, loop->sprite()->pixelFormat(), 2);
|
||||
|
||||
switch (m_type) {
|
||||
case Opaque:
|
||||
if (loop->getBrush()->type() == doc::kImageBrushType)
|
||||
m_proc = ink_processing[INK_BRUSH][depth];
|
||||
else
|
||||
m_proc = ink_processing[INK_OPAQUE][depth];
|
||||
break;
|
||||
case SetAlpha:
|
||||
m_proc = ink_processing[INK_SETALPHA][depth];
|
||||
break;
|
||||
case LockAlpha:
|
||||
m_proc = ink_processing[INK_LOCKALPHA][depth];
|
||||
break;
|
||||
default:
|
||||
if (loop->getBrush()->type() == doc::kImageBrushType)
|
||||
m_proc = ink_processing[INK_BRUSH][depth];
|
||||
else
|
||||
if (loop->getBrush()->type() == doc::kImageBrushType)
|
||||
m_proc = ink_processing[INK_BRUSH][depth];
|
||||
else {
|
||||
switch (m_type) {
|
||||
case Opaque: m_proc = ink_processing[INK_OPAQUE][depth]; break;
|
||||
case SetAlpha: m_proc = ink_processing[INK_SETALPHA][depth]; break;
|
||||
case LockAlpha: m_proc = ink_processing[INK_LOCKALPHA][depth]; break;
|
||||
default:
|
||||
m_proc = (loop->getOpacity() == 255 ?
|
||||
ink_processing[INK_OPAQUE][depth]:
|
||||
ink_processing[INK_TRANSPARENT][depth]);
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user