Skip to content

Commit

Permalink
[Complex Text Layouts] Fix missing ItemList item text buffer init in …
Browse files Browse the repository at this point in the history
…`add_icon_item`.
  • Loading branch information
bruvzg committed Dec 6, 2020
1 parent 384211a commit a41f1c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/gui/item_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a41f1c6

Please sign in to comment.