mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
[Complex Text Layouts] Fix missing ItemList item text buffer init in add_icon_item
.
This commit is contained in:
parent
384211af4b
commit
a41f1c67e5
@ -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…
Reference in New Issue
Block a user