diff options
| author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-12-17 21:03:25 -0200 |
|---|---|---|
| committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-12-17 21:03:58 -0200 |
| commit | b86b497cec8f0b3fa348f8c9b7bcce7d20232292 (patch) | |
| tree | 580fb7ff37423c103e8deffff6bd8cf9fcd6f1e9 /editor/plugins/animation_state_machine_editor.cpp | |
| parent | 0cff752be1f6c6a61ad72bcdf340c06d08277081 (diff) | |
| download | redot-engine-b86b497cec8f0b3fa348f8c9b7bcce7d20232292.tar.gz | |
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; |
