You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #112145 from IphStich/fix-erasecorner-tileterrain
Fix "Match Corners" not correctly updating cells when erasing
This commit is contained in:
@@ -2601,7 +2601,7 @@ HashMap<Vector2i, TileSet::TerrainsPattern> TileMapLayer::terrain_fill_pattern(c
|
|||||||
// Find the adequate neighbor.
|
// Find the adequate neighbor.
|
||||||
for (int j = 0; j < TileSet::CELL_NEIGHBOR_MAX; j++) {
|
for (int j = 0; j < TileSet::CELL_NEIGHBOR_MAX; j++) {
|
||||||
TileSet::CellNeighbor bit = TileSet::CellNeighbor(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);
|
Vector2i neighbor = tile_set->get_neighbor_cell(coords, bit);
|
||||||
if (!can_modify_set.has(neighbor)) {
|
if (!can_modify_set.has(neighbor)) {
|
||||||
can_modify_list.push_back(neighbor);
|
can_modify_list.push_back(neighbor);
|
||||||
|
|||||||
Reference in New Issue
Block a user