From b0e31eeb4aad7a85321d7c96c5802386321f39d0 Mon Sep 17 00:00:00 2001 From: SnailRhymer Date: Tue, 24 May 2022 13:22:16 +0100 Subject: Remove configuration warning from AnimationPlayer Remove warning about animations in different libraries having the same name, since shared names are fine. Also fix missing vformat argument when setting the name of an animation to one that does conflict with an animation in the same library. --- editor/plugins/animation_player_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins') diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index e75cdba003..765d963846 100644 --- a/editor/plugins/animation_player_editor_plugin.cpp +++ b/editor/plugins/animation_player_editor_plugin.cpp @@ -452,7 +452,7 @@ void AnimationPlayerEditor::_animation_name_edited() { } if (player->has_animation(test_name_prefix + new_name)) { - error_dialog->set_text(vformat(TTR("Animation '%s' already exists!"))); + error_dialog->set_text(vformat(TTR("Animation '%s' already exists!"), test_name_prefix + new_name)); error_dialog->popup_centered(); return; } -- cgit v1.2.3