Merge pull request #57631 from groud/terrain_fix_with_empty_cells

This commit is contained in:
Rémi Verschelde 2022-02-04 19:03:44 +01:00 committed by GitHub
commit 3db1d689ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2337,7 +2337,7 @@ Map<Vector2i, TileMapCell> TileMapEditorTerrainsPlugin::_draw_terrains(const Map
bool to_replace_modified = true;
while (to_replace_modified) {
// Get the constraints from the removed cells.
removed_cells_constraints_set = tile_map->get_terrain_constraints_from_removed_cells_list(tile_map_layer, to_replace, p_terrain_set);
removed_cells_constraints_set = tile_map->get_terrain_constraints_from_removed_cells_list(tile_map_layer, to_replace, p_terrain_set, false);
// Filter the sources to make sure they are in the potential_to_replace.
Map<TileMap::TerrainConstraint, Set<Vector2i>> per_constraint_tiles;