
When i make a TileSet Atlas from the first two tiles and paint them onto the map with priority it uses the first three tiles?

Maybe these settings are wrong?

It is painting this desert tile that is not even in the atlas?
So i made a new simple test:

Making a TileSet Atlas from the first two works fine, so i will add borders:

Still works fine... add spacing:

Now i have the same problem as the kenney map. How is it drawing a blue tile that is not in atlas?

Either my settings are wrong or bug?
Thanks.
https://github.com/rakkarage/TestTileSetAtlas