From e76e39d5f5ae9f39d06e6466dc89ffbcb7bc90cc Mon Sep 17 00:00:00 2001 From: Eric M Date: Sun, 26 Apr 2020 22:10:11 +1000 Subject: Fixed bug where spinbox would not update to it's actual value after non-numeric input --- scene/gui/spin_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene') diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index 8572d570fb..d40cb89d16 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -63,8 +63,8 @@ void SpinBox::_text_entered(const String &p_string) { Variant value = expr->execute(Array(), nullptr, false); if (value.get_type() != Variant::NIL) { set_value(value); - _value_changed(0); } + _value_changed(0); } LineEdit *SpinBox::get_line_edit() { -- cgit v1.2.3