Fix crash after renaming an animation node
This commit is contained in:
parent
3102660512
commit
5ea4a8b421
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue