diff options
author | kobewi <kobewi4e@gmail.com> | 2022-03-12 01:06:45 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-03-12 01:14:03 +0100 |
commit | 42078dec9f592243209f845766409d01c12ac525 (patch) | |
tree | d73198d40081021ae8ab945d58b4482378869c7b /editor/plugins/tiles/tile_map_editor.cpp | |
parent | d5076439e44e6eab5732e1d2fc0f30bb6f34e5f9 (diff) |
Allow negative indexes in ItemList and PopupMenu
Diffstat (limited to 'editor/plugins/tiles/tile_map_editor.cpp')
-rw-r--r-- | editor/plugins/tiles/tile_map_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tiles/tile_map_editor.cpp b/editor/plugins/tiles/tile_map_editor.cpp index 4a0fc0b29f..8d8c65f2c4 100644 --- a/editor/plugins/tiles/tile_map_editor.cpp +++ b/editor/plugins/tiles/tile_map_editor.cpp @@ -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) { |