1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Fix animation resource name after duplication

(cherry picked from commit 8dc12135cd)
This commit is contained in:
Haoyu Qiu
2022-03-05 21:00:34 +08:00
committed by Rémi Verschelde
parent a26afe807f
commit 2ccd4fd030

View File

@@ -549,6 +549,7 @@ void AnimationPlayerEditor::_animation_name_edited() {
}
}
new_anim->set_path("");
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);