You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #48570 from Calinou/animation-editors-new-name
Tweak the name for new animations in the editor
This commit is contained in:
@@ -788,11 +788,11 @@ void SpriteFramesEditor::_animation_name_edited() {
|
||||
}
|
||||
|
||||
void SpriteFramesEditor::_animation_add() {
|
||||
String name = "New Anim";
|
||||
String name = "new_animation";
|
||||
int counter = 0;
|
||||
while (frames->has_animation(name)) {
|
||||
counter++;
|
||||
name = "New Anim " + itos(counter);
|
||||
name = vformat("new_animation_%d", counter);
|
||||
}
|
||||
|
||||
List<Node *> nodes;
|
||||
|
||||
Reference in New Issue
Block a user