Browse Source

Fixes terrain painting on TileMaps when using empty terrain bits

Gilles Roudière 3 years ago
parent
commit
64e53cdc55
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/plugins/tiles/tile_map_editor.cpp

+ 1 - 1
editor/plugins/tiles/tile_map_editor.cpp

@@ -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;