summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authormarynate <mary.w.nate@gmail.com>2014-04-01 16:23:05 +0800
committermarynate <mary.w.nate@gmail.com>2014-04-01 16:49:10 +0800
commita0fcab0a94559b0cdd38e1ee2e3d82e584420750 (patch)
tree6ec2838358e64c9246567032901605db784cd50a /tools
parente20e3c9525c2f0d5bb95e85138a8d88a0088d439 (diff)
Add hotkey for switching viewports
Hotkey added
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/plugins/spatial_editor_plugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp
index 0014c5a68a..c8cbc39732 100644
--- a/tools/editor/plugins/spatial_editor_plugin.cpp
+++ b/tools/editor/plugins/spatial_editor_plugin.cpp
@@ -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);