You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #8407 from Jylhis/popup_item_select_hide
Update PopupMenu hiding
This commit is contained in:
@@ -792,6 +792,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);
|
||||
|
||||
Reference in New Issue
Block a user