fix animation error player error focus
This commit is contained in:
parent
8f3e2a6113
commit
943aeb4573
@ -2038,10 +2038,10 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
|
|||||||
vb->add_child(name_hb);
|
vb->add_child(name_hb);
|
||||||
name_dialog->register_text_enter(name);
|
name_dialog->register_text_enter(name);
|
||||||
|
|
||||||
error_dialog = memnew(ConfirmationDialog);
|
error_dialog = memnew(AcceptDialog);
|
||||||
error_dialog->set_ok_button_text(TTR("Close"));
|
error_dialog->set_ok_button_text(TTR("Close"));
|
||||||
error_dialog->set_title(TTR("Error!"));
|
error_dialog->set_title(TTR("Error!"));
|
||||||
add_child(error_dialog);
|
name_dialog->add_child(error_dialog);
|
||||||
|
|
||||||
name_dialog->connect(SNAME("confirmed"), callable_mp(this, &AnimationPlayerEditor::_animation_name_edited));
|
name_dialog->connect(SNAME("confirmed"), callable_mp(this, &AnimationPlayerEditor::_animation_name_edited));
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ class AnimationPlayerEditor : public VBoxContainer {
|
|||||||
} blend_editor;
|
} blend_editor;
|
||||||
|
|
||||||
ConfirmationDialog *name_dialog = nullptr;
|
ConfirmationDialog *name_dialog = nullptr;
|
||||||
ConfirmationDialog *error_dialog = nullptr;
|
AcceptDialog *error_dialog = nullptr;
|
||||||
int name_dialog_op = TOOL_NEW_ANIM;
|
int name_dialog_op = TOOL_NEW_ANIM;
|
||||||
|
|
||||||
bool updating = false;
|
bool updating = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user