You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Allow negative indexes in ItemList and PopupMenu
This commit is contained in:
@@ -188,7 +188,7 @@ void TileMapEditorTilesPlugin::_update_tile_set_sources_list() {
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
if (sources_list->get_item_count() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user