mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 18:11:13 +00:00
Fix global AnimationLibrary name validation
This commit is contained in:
parent
0f8ee1d256
commit
b3162e270e
4 changed files with 14 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue