mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-20 18:40:57 +00:00
Fix magic wand tool used in a transparent layer when cel origin=(0,0)
This commit is contained in:
parent
ecbd845aae
commit
8569cf449a
@ -501,10 +501,8 @@ public:
|
||||
m_frame,
|
||||
gfx::Clip(m_sprite->bounds()));
|
||||
}
|
||||
else {
|
||||
Cel* cel = m_layer->cel(m_frame);
|
||||
if (cel && (cel->x() != 0 || cel->y() != 0))
|
||||
m_floodfillSrcImage = render::rasterize_with_sprite_bounds(cel);
|
||||
else if (Cel* cel = m_layer->cel(m_frame)) {
|
||||
m_floodfillSrcImage = render::rasterize_with_sprite_bounds(cel);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user