Browse Source

If spinbox text can't be parsed use last updated text

Robert Yevdokimov 1 year ago
parent
commit
76a6650fd9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/gui/spin_box.cpp

+ 1 - 0
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;
 		}
 	}