1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00
Disable PopupMenu hiding in snap settings of the TextureRegion editor
and Edit menu of the scene
This commit is contained in:
Jylhis
2017-04-14 14:49:50 +03:00
parent 8ccb9d13c3
commit aa63fd1551
2 changed files with 3 additions and 0 deletions

View File

@@ -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);