Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 64e53cd

Browse files
committed
Fixes terrain painting on TileMaps when using empty terrain bits
1 parent 3688071 commit 64e53cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/plugins/tiles/tile_map_editor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2337,7 +2337,7 @@ Map<Vector2i, TileMapCell> TileMapEditorTerrainsPlugin::_draw_terrains(const Map
23372337
bool to_replace_modified = true;
23382338
while (to_replace_modified) {
23392339
// Get the constraints from the removed cells.
2340-
removed_cells_constraints_set = tile_map->get_terrain_constraints_from_removed_cells_list(tile_map_layer, to_replace, p_terrain_set);
2340+
removed_cells_constraints_set = tile_map->get_terrain_constraints_from_removed_cells_list(tile_map_layer, to_replace, p_terrain_set, false);
23412341

23422342
// Filter the sources to make sure they are in the potential_to_replace.
23432343
Map<TileMap::TerrainConstraint, Set<Vector2i>> per_constraint_tiles;

0 commit comments

Comments
 (0)