From b86b497cec8f0b3fa348f8c9b7bcce7d20232292 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Mon, 17 Dec 2018 21:03:25 -0200 Subject: General fixes for the AnimationTree editor --- editor/plugins/animation_state_machine_editor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editor/plugins/animation_state_machine_editor.cpp') 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; -- cgit v1.2.3