From 93878992def9f0bca10cd57dd7ebbb00cd3af19b Mon Sep 17 00:00:00 2001 From: marynate Date: Thu, 20 Feb 2014 19:25:43 +0800 Subject: Add F key to center 3d viewport to selected node --- tools/editor/plugins/spatial_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/editor/plugins/spatial_editor_plugin.cpp') 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; } -- cgit v1.2.3