Add hotkey for switching viewports

Hotkey added
This commit is contained in:
marynate 2014-04-01 16:23:05 +08:00
parent e20e3c9525
commit a0fcab0a94
1 changed files with 4 additions and 4 deletions

View File

@ -3029,10 +3029,10 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) {
p->add_check_item("Use Default Light",MENU_VIEW_USE_DEFAULT_LIGHT);
p->add_separator();
p->add_check_item("1 Viewport",MENU_VIEW_USE_1_VIEWPORT);
p->add_check_item("2 Viewports",MENU_VIEW_USE_2_VIEWPORTS);
p->add_check_item("3 Viewports",MENU_VIEW_USE_3_VIEWPORTS);
p->add_check_item("4 Viewports",MENU_VIEW_USE_4_VIEWPORTS);
p->add_check_item("1 Viewport",MENU_VIEW_USE_1_VIEWPORT,KEY_MASK_ALT+KEY_1);
p->add_check_item("2 Viewports",MENU_VIEW_USE_2_VIEWPORTS,KEY_MASK_ALT+KEY_2);
p->add_check_item("3 Viewports",MENU_VIEW_USE_3_VIEWPORTS,KEY_MASK_ALT+KEY_3);
p->add_check_item("4 Viewports",MENU_VIEW_USE_4_VIEWPORTS,KEY_MASK_ALT+KEY_4);
p->add_separator();
p->add_check_item("Display Normal",MENU_VIEW_DISPLAY_NORMAL);