Merge pull request #57190 from timothyqiu/ani-node-rename

This commit is contained in:
Rémi Verschelde 2022-01-25 15:13:24 +01:00 committed by GitHub
commit 203e07aa39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -898,6 +898,9 @@ void AnimationNodeBlendTreeEditor::_node_renamed(const String &p_text, Ref<Anima
}
void AnimationNodeBlendTreeEditor::_node_renamed_focus_out(Node *le, Ref<AnimationNode> p_node) {
if (le == nullptr) {
return; // The text_submitted signal triggered the graph update and freed the LineEdit.
}
_node_renamed(le->call("get_text"), p_node);
}