Fixed error when renaming a state in AnimationNodeStateMachine
Fixes #33245
This commit is contained in:
parent
a49c8d4a2b
commit
f6f60e22f5
1 changed files with 4 additions and 2 deletions
|
@ -1117,15 +1117,17 @@ void AnimationNodeStateMachineEditor::_name_edited(const String &p_text) {
|
||||||
undo_redo->add_do_method(this, "_update_graph");
|
undo_redo->add_do_method(this, "_update_graph");
|
||||||
undo_redo->add_undo_method(this, "_update_graph");
|
undo_redo->add_undo_method(this, "_update_graph");
|
||||||
undo_redo->commit_action();
|
undo_redo->commit_action();
|
||||||
|
name_edit->hide();
|
||||||
updating = false;
|
updating = false;
|
||||||
|
|
||||||
state_machine_draw->update();
|
state_machine_draw->update();
|
||||||
|
|
||||||
name_edit->hide();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimationNodeStateMachineEditor::_name_edited_focus_out() {
|
void AnimationNodeStateMachineEditor::_name_edited_focus_out() {
|
||||||
|
|
||||||
|
if (updating)
|
||||||
|
return;
|
||||||
|
|
||||||
_name_edited(name_edit->get_text());
|
_name_edited(name_edit->get_text());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue