1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Allow negative indexes in ItemList and PopupMenu

This commit is contained in:
kobewi
2022-03-12 01:06:45 +01:00
parent d5076439e4
commit 42078dec9f
25 changed files with 163 additions and 59 deletions

View File

@@ -182,7 +182,7 @@ void TileSetEditor::_update_sources_list(int force_selected_id) {
}
sources_list->add_item(item_text, texture);
sources_list->set_item_metadata(sources_list->get_item_count() - 1, source_id);
sources_list->set_item_metadata(-1, source_id);
}
// Set again the current selected item if needed.