From 76a6650fd97bba5404a25decc9ff4c94e84ed998 Mon Sep 17 00:00:00 2001 From: Robert Yevdokimov Date: Sat, 24 Feb 2024 20:10:20 -0500 Subject: [PATCH] If spinbox text can't be parsed use last updated text --- scene/gui/spin_box.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index d482495ca0c..70acaf7adff 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; } }