Skip to content

Commit 92f57ed

Browse files
committed
Merge pull request #112145 from IphStich/fix-erasecorner-tileterrain
Fix "Match Corners" not correctly updating cells when erasing
2 parents 0994b19 + b2a4bda commit 92f57ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/2d/tile_map_layer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2601,7 +2601,7 @@ HashMap<Vector2i, TileSet::TerrainsPattern> TileMapLayer::terrain_fill_pattern(c
26012601
// Find the adequate neighbor.
26022602
for (int j = 0; j < TileSet::CELL_NEIGHBOR_MAX; j++) {
26032603
TileSet::CellNeighbor bit = TileSet::CellNeighbor(j);
2604-
if (tile_set->is_valid_terrain_peering_bit(p_terrain_set, bit)) {
2604+
if (tile_set->is_existing_neighbor(bit)) {
26052605
Vector2i neighbor = tile_set->get_neighbor_cell(coords, bit);
26062606
if (!can_modify_set.has(neighbor)) {
26072607
can_modify_list.push_back(neighbor);

0 commit comments

Comments
 (0)