Fix "Auto" mode when there are linked cels in a tilemap layer

This commit is contained in:
David Capello 2021-05-26 12:22:25 -03:00
parent 540e5c90d9
commit e5925ffb15

View File

@ -102,7 +102,7 @@ void create_region_with_differences_templ(const Image* a,
template<typename UnaryFunction>
void for_each_tile_using_tileset(Tileset* tileset, UnaryFunction f)
{
for (Cel* cel : tileset->sprite()->cels()) {
for (Cel* cel : tileset->sprite()->uniqueCels()) {
if (!cel->layer()->isTilemap() ||
static_cast<LayerTilemap*>(cel->layer())->tileset() != tileset)
continue;