Explorar el Código

Fixed bug where spinbox would not update to it's actual value after non-numeric input

Eric M hace 5 años
padre
commit
e76e39d5f5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      scene/gui/spin_box.cpp

+ 1 - 1
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() {