AnimationPlayer: fix popups close on double click
(cherry picked from commit 6d51b6ab42
)
This commit is contained in:
parent
2f7aa6c2aa
commit
069b429795
|
@ -3998,6 +3998,7 @@ AnimationKeyEditor::AnimationKeyEditor() {
|
||||||
//key_edit->ke_dialog=key_edit_dialog;
|
//key_edit->ke_dialog=key_edit_dialog;
|
||||||
|
|
||||||
type_menu = memnew(PopupMenu);
|
type_menu = memnew(PopupMenu);
|
||||||
|
type_menu->set_pass_on_modal_close_click(false);
|
||||||
add_child(type_menu);
|
add_child(type_menu);
|
||||||
for (int i = 0; i < Variant::VARIANT_MAX; i++)
|
for (int i = 0; i < Variant::VARIANT_MAX; i++)
|
||||||
type_menu->add_item(Variant::get_type_name(Variant::Type(i)), i);
|
type_menu->add_item(Variant::get_type_name(Variant::Type(i)), i);
|
||||||
|
@ -4038,6 +4039,7 @@ AnimationKeyEditor::AnimationKeyEditor() {
|
||||||
add_child(track_name);
|
add_child(track_name);
|
||||||
track_name->connect("text_entered", this, "_track_name_changed");
|
track_name->connect("text_entered", this, "_track_name_changed");
|
||||||
track_menu = memnew(PopupMenu);
|
track_menu = memnew(PopupMenu);
|
||||||
|
track_menu->set_pass_on_modal_close_click(false);
|
||||||
add_child(track_menu);
|
add_child(track_menu);
|
||||||
track_menu->connect("id_pressed", this, "_track_menu_selected");
|
track_menu->connect("id_pressed", this, "_track_menu_selected");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue