You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Allow to rename animation just after it was duplicated & show animation name in Delete prompt
This commit is contained in:
@@ -433,7 +433,9 @@ void AnimationPlayerEditor::_animation_remove() {
|
|||||||
if (animation->get_item_count() == 0)
|
if (animation->get_item_count() == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
delete_dialog->set_text(TTR("Delete Animation?"));
|
String current = animation->get_item_text(animation->get_selected());
|
||||||
|
|
||||||
|
delete_dialog->set_text(TTR("Delete Animation '" + current + "'?"));
|
||||||
delete_dialog->popup_centered();
|
delete_dialog->popup_centered();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1135,7 +1137,9 @@ void AnimationPlayerEditor::_animation_tool_menu(int p_option) {
|
|||||||
case TOOL_DUPLICATE_ANIM: {
|
case TOOL_DUPLICATE_ANIM: {
|
||||||
|
|
||||||
_animation_duplicate();
|
_animation_duplicate();
|
||||||
} break;
|
|
||||||
|
[[fallthrough]]; // Allow immediate rename after animation is duplicated
|
||||||
|
}
|
||||||
case TOOL_RENAME_ANIM: {
|
case TOOL_RENAME_ANIM: {
|
||||||
|
|
||||||
_animation_rename();
|
_animation_rename();
|
||||||
|
|||||||
Reference in New Issue
Block a user