diff options
| author | Jylhis | 2017-04-14 14:49:50 +0300 |
|---|---|---|
| committer | Jylhis | 2017-04-14 15:01:56 +0300 |
| commit | aa63fd1551fd99d5936999ad0607f48755dc2963 (patch) | |
| tree | 5d09c23ce266b22e9f958c7b4ea1a50d4b81340f /editor/plugins/texture_region_editor_plugin.cpp | |
| parent | 8ccb9d13c31e3dc2a7bad00edb3676e45f16b05e (diff) | |
| download | godot-aa63fd1551fd99d5936999ad0607f48755dc2963.tar.gz godot-aa63fd1551fd99d5936999ad0607f48755dc2963.tar.zst godot-aa63fd1551fd99d5936999ad0607f48755dc2963.zip | |
Fix #7262
Disable PopupMenu hiding in snap settings of the TextureRegion editor
and Edit menu of the scene
Diffstat (limited to 'editor/plugins/texture_region_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/texture_region_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/texture_region_editor_plugin.cpp b/editor/plugins/texture_region_editor_plugin.cpp index 4c49b467d..fe93a5aac 100644 --- a/editor/plugins/texture_region_editor_plugin.cpp +++ b/editor/plugins/texture_region_editor_plugin.cpp @@ -790,6 +790,7 @@ TextureRegionEditor::TextureRegionEditor(EditorNode *p_editor) { hb_tools->add_child(snap_mode_button); snap_mode_button->set_text(TTR("<None>")); PopupMenu *p = snap_mode_button->get_popup(); + p->set_hide_on_checkable_item_selection(false); p->add_item(TTR("<None>"), 0); p->add_item(TTR("Pixel Snap"), 1); p->add_item(TTR("Grid Snap"), 2); |
