[Complex Text Layouts] Fix missing ItemList item text buffer init in add_icon_item.
This commit is contained in:
parent
384211af4b
commit
a41f1c67e5
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue