summaryrefslogtreecommitdiffstats
path: root/editor/plugins/animation_player_editor_plugin.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-05-05 11:19:54 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-05-05 11:19:54 +0800
commitb3162e270e7b3e885330a61570f148b76f25950f (patch)
tree31c2a280cc82eecd60249bb0d1edd6a906647d03 /editor/plugins/animation_player_editor_plugin.cpp
parent0f8ee1d256c2bc7dc7bafc32e8137644bcc4a8ae (diff)
downloadredot-engine-b3162e270e7b3e885330a61570f148b76f25950f.tar.gz
Fix global AnimationLibrary name validation
Diffstat (limited to 'editor/plugins/animation_player_editor_plugin.cpp')
-rw-r--r--editor/plugins/animation_player_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp
index 67d6c66c89..581dab84b4 100644
--- a/editor/plugins/animation_player_editor_plugin.cpp
+++ b/editor/plugins/animation_player_editor_plugin.cpp
@@ -427,7 +427,7 @@ void AnimationPlayerEditor::_animation_name_edited() {
player->stop();
String new_name = name->get_text();
- if (!AnimationLibrary::is_valid_name(new_name)) {
+ if (!AnimationLibrary::is_valid_animation_name(new_name)) {
error_dialog->set_text(TTR("Invalid animation name!"));
error_dialog->popup_centered();
return;