aboutsummaryrefslogtreecommitdiff
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-12-10 11:58:36 +0100
committerGitHub2017-12-10 11:58:36 +0100
commit7d735da6aa86861c4d0ba81ec769d3b6d7dad3c0 (patch)
treed811d508daed53729d1133964ad21014b6762a61 /editor/property_editor.cpp
parentafbcf573eacf8397ddec88b6922022a5e349cc2a (diff)
parentefc3ffb816796fbab64d389508d837560b4f220c (diff)
downloadgodot-7d735da6aa86861c4d0ba81ec769d3b6d7dad3c0.tar.gz
godot-7d735da6aa86861c4d0ba81ec769d3b6d7dad3c0.tar.zst
godot-7d735da6aa86861c4d0ba81ec769d3b6d7dad3c0.zip
Merge pull request #13351 from poke1024/fix12451_2
Make click on arrow properly open and close property editor modals
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 14e3b7cfb..b3743dbdf 100644
--- a/editor/property_editor.cpp
+++ b/editor/property_editor.cpp
@@ -1939,6 +1939,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");
@@ -4276,6 +4277,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");