Jelajahi Sumber

fixes issue 81071

Tyler 2 tahun lalu
induk
melakukan
468e57dfe5
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      scene/gui/spin_box.cpp

+ 1 - 0
scene/gui/spin_box.cpp

@@ -65,6 +65,7 @@ void SpinBox::_text_submitted(const String &p_string) {
 	// Ignore the prefix and suffix in the expression.
 	Error err = expr->parse(num.trim_prefix(prefix + " ").trim_suffix(" " + suffix));
 	if (err != OK) {
+		_update_text();
 		return;
 	}