[Complex Text Layouts] Fix missing ItemList item text buffer init in add_icon_item.

This commit is contained in:
bruvzg 2020-12-02 23:17:51 +02:00
parent 384211af4b
commit a41f1c67e5
No known key found for this signature in database
GPG Key ID: 009E1BFE42239B95

View File

@ -78,6 +78,7 @@ void ItemList::add_icon_item(const Ref<Texture2D> &p_item, bool p_selectable) {
item.icon_region = Rect2i();
item.icon_modulate = Color(1, 1, 1, 1);
//item.text=p_item;
item.text_buf.instance();
item.selectable = p_selectable;
item.selected = false;
item.disabled = false;