mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Tilemap editor: Fix crash introduced in #17582
This commit is contained in:
parent
4bf9031e52
commit
81fd48eb1e
@ -526,7 +526,7 @@ PoolVector<Vector2> TileMapEditor::_bucket_fill(const Point2i &p_start, bool era
|
||||
if (!erase) {
|
||||
ids = get_selected_tiles();
|
||||
|
||||
if (ids.size() == 0 && ids[0] == TileMap::INVALID_CELL)
|
||||
if (ids.size() == 0 || ids[0] == TileMap::INVALID_CELL)
|
||||
return PoolVector<Vector2>();
|
||||
} else if (prev_id == TileMap::INVALID_CELL) {
|
||||
return PoolVector<Vector2>();
|
||||
|
Loading…
Reference in New Issue
Block a user