mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
Add String::replace_char(s) methods for performance and convenience
This commit is contained in:
@@ -568,8 +568,8 @@ void EditorSpinSlider::_evaluate_input_text() {
|
||||
expr.instantiate();
|
||||
|
||||
// Convert commas ',' to dots '.' for French/German etc. keyboard layouts.
|
||||
String text = value_input->get_text().replace(",", ".");
|
||||
text = text.replace(";", ",");
|
||||
String text = value_input->get_text().replace_char(',', '.');
|
||||
text = text.replace_char(';', ',');
|
||||
text = TS->parse_number(text);
|
||||
|
||||
Error err = expr->parse(text);
|
||||
|
||||
Reference in New Issue
Block a user