If spinbox text can't be parsed use last updated text

This commit is contained in:
Robert Yevdokimov 2024-02-24 20:10:20 -05:00
parent 2e7fc81315
commit 76a6650fd9

View file

@ -83,6 +83,7 @@ void SpinBox::_text_submitted(const String &p_string) {
err = expr->parse(text); err = expr->parse(text);
if (err != OK) { if (err != OK) {
_update_text();
return; return;
} }
} }