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

Fix global AnimationLibrary name validation

This commit is contained in:
Haoyu Qiu
2022-05-05 11:19:54 +08:00
parent 0f8ee1d256
commit b3162e270e
4 changed files with 14 additions and 13 deletions

View File

@@ -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;