mirror of https://github.com/godotengine/godot
If spinbox text can't be parsed use last updated text
This commit is contained in:
parent
2e7fc81315
commit
76a6650fd9
|
|
@ -83,6 +83,7 @@ void SpinBox::_text_submitted(const String &p_string) {
|
||||||
|
|
||||||
err = expr->parse(text);
|
err = expr->parse(text);
|
||||||
if (err != OK) {
|
if (err != OK) {
|
||||||
|
_update_text();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue