mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 12:40:34 +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,
|
m_frame,
|
||||||
gfx::Clip(m_sprite->bounds()));
|
gfx::Clip(m_sprite->bounds()));
|
||||||
}
|
}
|
||||||
else {
|
else if (Cel* cel = m_layer->cel(m_frame)) {
|
||||||
Cel* cel = m_layer->cel(m_frame);
|
m_floodfillSrcImage = render::rasterize_with_sprite_bounds(cel);
|
||||||
if (cel && (cel->x() != 0 || cel->y() != 0))
|
|
||||||
m_floodfillSrcImage = render::rasterize_with_sprite_bounds(cel);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user