From 93878992def9f0bca10cd57dd7ebbb00cd3af19b Mon Sep 17 00:00:00 2001 From: marynate Date: Thu, 20 Feb 2014 19:25:43 +0800 Subject: [PATCH] Add F key to center 3d viewport to selected node --- tools/editor/plugins/spatial_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp index be7214aaa70..0014c5a68a4 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; }