فهرست منبع

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

Robert Yevdokimov 1 سال پیش
والد
کامیت
76a6650fd9
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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;
 		}
 	}