mirror of
https://github.com/godotengine/godot.git
synced 2024-12-04 01:52:56 +00:00
Merge pull request #81268 from timothyqiu/icon-scale-changes
Fix ItemList not updating when icon scale changes
This commit is contained in:
commit
6f87ab7244
@ -1615,7 +1615,14 @@ bool ItemList::get_allow_search() const {
|
||||
|
||||
void ItemList::set_icon_scale(real_t p_scale) {
|
||||
ERR_FAIL_COND(!Math::is_finite(p_scale));
|
||||
|
||||
if (icon_scale == p_scale) {
|
||||
return;
|
||||
}
|
||||
|
||||
icon_scale = p_scale;
|
||||
queue_redraw();
|
||||
shape_changed = true;
|
||||
}
|
||||
|
||||
real_t ItemList::get_icon_scale() const {
|
||||
|
Loading…
Reference in New Issue
Block a user