Explorar o código

Add F key to center 3d viewport to selected node

marynate %!s(int64=11) %!d(string=hai) anos
pai
achega
93878992de
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
 				} break;
 
 
+				case KEY_F: {
+					_menu_option(VIEW_CENTER_TO_SELECTION);
+				} break;
 			}
 			}