diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-28 10:39:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 10:39:58 +0200 |
commit | 7281f0f2381394a33300901a04fba100c5af79d9 (patch) | |
tree | 6535ff6331d5d758f0a51c9dac3be942946b130d /editor/plugins | |
parent | a5f12f9c21ed8065767ffe574b8a09d155e02e17 (diff) | |
parent | c28efd6c955e29c124d0e3345bd36155d233dee2 (diff) |
Merge pull request #62350 from Valeryn4/fix_animation_state_machine
Validate AnimationNode name in AnimationStateMachine
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/animation_state_machine_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/animation_state_machine_editor.cpp b/editor/plugins/animation_state_machine_editor.cpp index 1258b9a03c..93dc0ff3c9 100644 --- a/editor/plugins/animation_state_machine_editor.cpp +++ b/editor/plugins/animation_state_machine_editor.cpp @@ -1018,7 +1018,7 @@ void AnimationNodeStateMachineEditor::_add_animation_type(int p_index) { anim->set_animation(animations_to_add[p_index]); - String base_name = animations_to_add[p_index]; + String base_name = animations_to_add[p_index].validate_node_name(); int base = 1; String name = base_name; while (state_machine->has_node(name)) { |