浏览代码

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;
 		}
 	}