Ver Fonte

Merge pull request #137 from marynate/PR-expose-f-key-to-center-sel

Add F key to center 3d viewport to selected node
okamstudio há 11 anos atrás
pai
commit
a9d299f688
1 ficheiros alterados com 3 adições e 0 exclusões
  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;
 			}
 			}