mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Add String::replace_char(s)
methods for performance and convenience
This commit is contained in:
parent
c374ce211c
commit
889410dcda
67 changed files with 297 additions and 137 deletions
|
@ -1104,7 +1104,7 @@ void SpriteFramesEditor::_animation_name_edited() {
|
|||
new_name = "new_animation";
|
||||
}
|
||||
|
||||
new_name = new_name.replace("/", "_").replace(",", " ");
|
||||
new_name = new_name.replace_char('/', '_').replace_char(',', ' ');
|
||||
|
||||
String name = new_name;
|
||||
int counter = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue