Remove a confusing TileMap warning
This commit is contained in:
parent
fc9b6ef07f
commit
ffec180ccc
2 changed files with 2 additions and 2 deletions
|
|
@ -1996,7 +1996,6 @@ void TileMap::set_cell(int p_layer, const Vector2i &p_coords, int p_source_id, c
|
|||
|
||||
if ((source_id == TileSet::INVALID_SOURCE || atlas_coords == TileSetSource::INVALID_ATLAS_COORDS || alternative_tile == TileSetSource::INVALID_TILE_ALTERNATIVE) &&
|
||||
(source_id != TileSet::INVALID_SOURCE || atlas_coords != TileSetSource::INVALID_ATLAS_COORDS || alternative_tile != TileSetSource::INVALID_TILE_ALTERNATIVE)) {
|
||||
WARN_PRINT("Setting a cell as empty requires both source_id, atlas_coord and alternative_tile to be set to their respective \"invalid\" values. Values were thus changes accordingly.");
|
||||
source_id = TileSet::INVALID_SOURCE;
|
||||
atlas_coords = TileSetSource::INVALID_ATLAS_COORDS;
|
||||
alternative_tile = TileSetSource::INVALID_TILE_ALTERNATIVE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue