1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

General fixes for the AnimationTree editor

This commit is contained in:
Michael Alexsander Silva Dias
2018-12-17 21:03:25 -02:00
parent 0cff752be1
commit b86b497cec
7 changed files with 12 additions and 5 deletions

View File

@@ -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;