diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-12-18 09:08:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 09:08:10 +0100 |
commit | 1621270f26a8f38ccfe76b86fa10c544f8088df0 (patch) | |
tree | bb3e7e21a676ce2a020e5928e8ab0d25ca0f10fb /editor/plugins/animation_state_machine_editor.cpp | |
parent | 75c6ad97561636767aba306f977bee590c3e7620 (diff) | |
parent | b86b497cec8f0b3fa348f8c9b7bcce7d20232292 (diff) |
Merge pull request #24432 from YeldhamDev/animationtree_editor_fixes
General fixes for the AnimationTree editor
Diffstat (limited to 'editor/plugins/animation_state_machine_editor.cpp')
-rw-r--r-- | editor/plugins/animation_state_machine_editor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/animation_state_machine_editor.cpp b/editor/plugins/animation_state_machine_editor.cpp index df7ac0b587..8efd12ecf9 100644 --- a/editor/plugins/animation_state_machine_editor.cpp +++ b/editor/plugins/animation_state_machine_editor.cpp @@ -1073,7 +1073,9 @@ void AnimationNodeStateMachineEditor::_name_edited(const String &p_text) { ERR_FAIL_COND(new_name == "" || new_name.find(".") != -1 || new_name.find("/") != -1) - ERR_FAIL_COND(new_name == prev_name); + if (new_name == prev_name) { + return; // Nothing to do. + } String base_name = new_name; int base = 1; |