浏览代码

Add F key to center 3d viewport to selected node

marynate 11 年之前
父节点
当前提交
93878992de
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tools/editor/plugins/spatial_editor_plugin.cpp

+ 3 - 0
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;
 			}