Fix crash after executing ItemList.set_icon_scale
(cherry picked from commit 8d0fa193c3
)
This commit is contained in:
parent
5797b2f437
commit
6f69d29398
|
@ -1274,6 +1274,7 @@ bool ItemList::get_allow_reselect() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemList::set_icon_scale(real_t p_scale) {
|
void ItemList::set_icon_scale(real_t p_scale) {
|
||||||
|
ERR_FAIL_COND(Math::is_nan(p_scale) || Math::is_inf(p_scale));
|
||||||
icon_scale = p_scale;
|
icon_scale = p_scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue