Merge pull request #70007 from timothyqiu/nan-scale
Fix crash after executing `ItemList.set_icon_scale`
This commit is contained in:
commit
a3b60d9186
1 changed files with 1 additions and 0 deletions
|
@ -1550,6 +1550,7 @@ bool ItemList::get_allow_reselect() const {
|
|||
}
|
||||
|
||||
void ItemList::set_icon_scale(real_t p_scale) {
|
||||
ERR_FAIL_COND(!Math::is_finite(p_scale));
|
||||
icon_scale = p_scale;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue