aboutsummaryrefslogtreecommitdiff
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorBernhard Liebl2017-11-22 09:43:40 +0100
committerBernhard Liebl2017-12-10 10:55:48 +0100
commitefc3ffb816796fbab64d389508d837560b4f220c (patch)
tree77e171cd720c8fd77a9883fad0dfe7eedc9257a3 /editor/property_editor.cpp
parentd055031c73ebce375f3b0087baf9ba617fc996aa (diff)
downloadgodot-efc3ffb816796fbab64d389508d837560b4f220c.tar.gz
godot-efc3ffb816796fbab64d389508d837560b4f220c.tar.zst
godot-efc3ffb816796fbab64d389508d837560b4f220c.zip
fix certain popup close clicks with popup buttons
Diffstat (limited to 'editor/property_editor.cpp')
-rw-r--r--editor/property_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index eed1efaf9..eb2437b88 100644
--- a/editor/property_editor.cpp
+++ b/editor/property_editor.cpp
@@ -1948,6 +1948,7 @@ CustomPropertyEditor::CustomPropertyEditor() {
type_button->get_popup()->connect("id_pressed", this, "_type_create_selected");
menu = memnew(PopupMenu);
+ menu->set_pass_on_modal_close_click(false);
add_child(menu);
menu->connect("id_pressed", this, "_menu_option");
@@ -4288,6 +4289,7 @@ PropertyEditor::PropertyEditor() {
set_physics_process(true);
custom_editor = memnew(CustomPropertyEditor);
+ custom_editor->set_pass_on_modal_close_click(false);
add_child(custom_editor);
tree->connect("custom_popup_edited", this, "_custom_editor_request");