mirror of
https://github.com/godotengine/godot.git
synced 2025-04-01 00:41:35 +08:00
Fix error spam when typing in the TileMap editor's search box while having no results
This commit is contained in:
parent
774a9fde84
commit
412a0b73e9
@ -503,7 +503,7 @@ void TileMapEditor::_update_palette() {
|
||||
if (selected.get(0) != TileMap::INVALID_CELL) {
|
||||
set_selected_tiles(selected);
|
||||
sel_tile = selected.get(Math::rand() % selected.size());
|
||||
} else {
|
||||
} else if (palette->get_item_count() > 0) {
|
||||
palette->select(0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user