From 8dc12135cd42a8742d77c3f3267181af1da85da1 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sat, 5 Mar 2022 21:00:34 +0800 Subject: [PATCH] Fix animation resource name after duplication --- editor/plugins/animation_player_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index ad126d28f6a..dd166ccd1de 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 anim = player->get_animation(current); Ref 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);