diff options
author | Robert Yevdokimov <robert.yevdokimov@autStand.com> | 2024-02-24 20:10:20 -0500 |
---|---|---|
committer | Robert Yevdokimov <robert.yevdokimov@autStand.com> | 2024-02-27 16:20:51 -0500 |
commit | 76a6650fd97bba5404a25decc9ff4c94e84ed998 (patch) | |
tree | 0a56b2ad1f112e92b3fd418895fd7cf003bfdb1a | |
parent | 2e7fc81315bfa8d0a15f60adff2a12b6f3104236 (diff) | |
download | redot-engine-76a6650fd97bba5404a25decc9ff4c94e84ed998.tar.gz |
If spinbox text can't be parsed use last updated text
-rw-r--r-- | scene/gui/spin_box.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index d482495ca0..70acaf7adf 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -83,6 +83,7 @@ void SpinBox::_text_submitted(const String &p_string) { err = expr->parse(text); if (err != OK) { + _update_text(); return; } } |