Fix applying a filter in a tilemap (don't displace cel to origin 0,0)

This commit is contained in:
David Capello 2019-11-04 16:21:11 -03:00
parent 40c4c549cd
commit dde2722ac1

View File

@ -95,7 +95,7 @@ doc::ImageRef crop_cel_image(
cel->layer(),
sprite->palette(cel->frame()),
dstImage->bounds(),
gfx::Clip(0, 0, dstImage->bounds()),
gfx::Clip(cel->position(), dstImage->bounds()),
255, BlendMode::NORMAL);
return dstImage;