summaryrefslogtreecommitdiff
path: root/tools/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authormarynate <mary.w.nate@gmail.com>2014-02-20 19:25:43 +0800
committermarynate <mary.w.nate@gmail.com>2014-02-23 17:17:48 +0800
commit93878992def9f0bca10cd57dd7ebbb00cd3af19b (patch)
treec818bfffeff4db4947e8012841390bbacf04c0e2 /tools/editor/plugins/spatial_editor_plugin.cpp
parent810d673e2384fbff843ed59bc2a5d3f0100ed511 (diff)
Add F key to center 3d viewport to selected node
Diffstat (limited to 'tools/editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/spatial_editor_plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp
index be7214aaa7..0014c5a68a 100644
--- a/tools/editor/plugins/spatial_editor_plugin.cpp
+++ b/tools/editor/plugins/spatial_editor_plugin.cpp
@@ -1407,6 +1407,9 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
} break;
+ case KEY_F: {
+ _menu_option(VIEW_CENTER_TO_SELECTION);
+ } break;
}