You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fix animation resource name after duplication
This commit is contained in:
@@ -547,6 +547,7 @@ void AnimationPlayerEditor::_animation_name_edited() {
|
|||||||
Ref<Animation> anim = player->get_animation(current);
|
Ref<Animation> anim = player->get_animation(current);
|
||||||
|
|
||||||
Ref<Animation> new_anim = _animation_clone(anim);
|
Ref<Animation> new_anim = _animation_clone(anim);
|
||||||
|
new_anim->set_name(new_name);
|
||||||
|
|
||||||
undo_redo->create_action(TTR("Duplicate Animation"));
|
undo_redo->create_action(TTR("Duplicate Animation"));
|
||||||
undo_redo->add_do_method(player, "add_animation", new_name, new_anim);
|
undo_redo->add_do_method(player, "add_animation", new_name, new_anim);
|
||||||
|
|||||||
Reference in New Issue
Block a user