summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorokamstudio <juan@okamstudio.com>2014-02-26 11:18:06 -0200
committerokamstudio <juan@okamstudio.com>2014-02-26 11:18:06 -0200
commita9d299f688177c30114640967aabd83c58af4752 (patch)
tree226a944ccbef74c6e892cd906d2b5414c56d2e5c
parenta919683228122dc47cb314ef6c3245ec23735568 (diff)
parent93878992def9f0bca10cd57dd7ebbb00cd3af19b (diff)
Merge pull request #137 from marynate/PR-expose-f-key-to-center-sel
Add F key to center 3d viewport to selected node
-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;
}