diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-05 16:13:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-05 16:13:27 +0100 |
commit | ff65d33e8c278bfbbbad18f9db959b2bbe04f919 (patch) | |
tree | 8bb7d8e495d55cd87ec7318bc46d1ef86f00823e | |
parent | cdd63fa8722da2cce75d3d9db65ce06548a5fa31 (diff) | |
parent | 8dc12135cd42a8742d77c3f3267181af1da85da1 (diff) |
Merge pull request #58785 from timothyqiu/ani-dup-nam
Fix animation resource name after duplication in editor
-rw-r--r-- | editor/plugins/animation_player_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index ad126d28f6..dd166ccd1d 100644 --- a/editor/plugins/animation_player_editor_plugin.cpp +++ b/editor/plugins/animation_player_editor_plugin.cpp @@ -547,6 +547,7 @@ void AnimationPlayerEditor::_animation_name_edited() { Ref<Animation> anim = player->get_animation(current); Ref<Animation> new_anim = _animation_clone(anim); + new_anim->set_name(new_name); undo_redo->create_action(TTR("Duplicate Animation")); undo_redo->add_do_method(player, "add_animation", new_name, new_anim); |