diff options
| author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-07-29 19:26:43 -0300 |
|---|---|---|
| committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-11-20 20:37:45 -0200 |
| commit | da7d3c5a585b944ac1223021eab2b2a23b25eee3 (patch) | |
| tree | e8444d1d01047b25135ea179fc7cda8bc9bf2261 /editor/plugins/spatial_editor_plugin.cpp | |
| parent | f2cc9698433a32a05c76987acd20a07441313037 (diff) | |
| download | redot-engine-da7d3c5a585b944ac1223021eab2b2a23b25eee3.tar.gz | |
Make opening menus with the same parent on mouse focus explicit
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index a5563c0497..1b3e800dca 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -5475,6 +5475,7 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) { transform_menu = memnew(MenuButton); transform_menu->set_text(TTR("Transform")); + transform_menu->set_switch_on_hover(true); hbc_menu->add_child(transform_menu); p = transform_menu->get_popup(); @@ -5487,6 +5488,7 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) { view_menu = memnew(MenuButton); view_menu->set_text(TTR("View")); + view_menu->set_switch_on_hover(true); hbc_menu->add_child(view_menu); p = view_menu->get_popup(); |
