Преглед на файлове

Merge pull request #58785 from timothyqiu/ani-dup-nam

Fix animation resource name after duplication in editor
Rémi Verschelde преди 3 години
родител
ревизия
ff65d33e8c
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      editor/plugins/animation_player_editor_plugin.cpp

+ 1 - 0
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);