소스 검색

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;
 			}