You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Allow negative indexes in ItemList and PopupMenu
This commit is contained in:
@@ -1145,7 +1145,7 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const
|
||||
String name = cat["name"];
|
||||
int id = cat["id"];
|
||||
categories->add_item(name);
|
||||
categories->set_item_metadata(categories->get_item_count() - 1, id);
|
||||
categories->set_item_metadata(-1, id);
|
||||
category_map[cat["id"]] = name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user