From b2a4bda3b0d1fdd9707ca4053c6bb1300a29f7bd Mon Sep 17 00:00:00 2001 From: Elise Date: Wed, 29 Oct 2025 18:48:22 +1100 Subject: [PATCH] Fix a bug where erasing cells with "Match Corners" mode would not result in all neighbors updating correctly --- scene/2d/tile_map_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/2d/tile_map_layer.cpp b/scene/2d/tile_map_layer.cpp index d77af81bc39..c88cdc0e4af 100644 --- a/scene/2d/tile_map_layer.cpp +++ b/scene/2d/tile_map_layer.cpp @@ -2601,7 +2601,7 @@ HashMap TileMapLayer::terrain_fill_pattern(c // Find the adequate neighbor. for (int j = 0; j < TileSet::CELL_NEIGHBOR_MAX; j++) { TileSet::CellNeighbor bit = TileSet::CellNeighbor(j); - if (tile_set->is_valid_terrain_peering_bit(p_terrain_set, bit)) { + if (tile_set->is_existing_neighbor(bit)) { Vector2i neighbor = tile_set->get_neighbor_cell(coords, bit); if (!can_modify_set.has(neighbor)) { can_modify_list.push_back(neighbor);