@@ -84,6 +84,7 @@ public ObjectSelectionWidget( SerializedObject so, ObjectSelection tool ) : base
8484 CreateButton ( "Previous" , "chevron_left" , "mesh.previous-pivot" , PreviousPivot , _gos . Length > 0 , grid ) ;
8585 CreateButton ( "Next" , "chevron_right" , "mesh.next-pivot" , NextPivot , _gos . Length > 0 , grid ) ;
8686 CreateButton ( "Clear" , "restart_alt" , "mesh.clear-pivot" , ClearPivot , _gos . Length > 0 , grid ) ;
87+ CreateButton ( "Center" , "center_focus_strong" , "mesh.center-pivot" , CenterPivot , _gos . Length > 0 , grid ) ;
8788 CreateButton ( "World Origin" , "language" , "mesh.zero-pivot" , ZeroPivot , _gos . Length > 0 , grid ) ;
8889
8990 grid . AddStretchCell ( ) ;
@@ -130,6 +131,9 @@ void OpenClippingTool()
130131 [ Shortcut ( "mesh.next-pivot" , "N+MWheelUp" , typeof ( SceneViewWidget ) ) ]
131132 public void NextPivot ( ) => _tool . NextPivot ( ) ;
132133
134+ [ Shortcut ( "mesh.center-pivot" , "Ctrl+Home" , typeof ( SceneViewWidget ) ) ]
135+ public void CenterPivot ( ) => _tool . CenterPivot ( ) ;
136+
133137 [ Shortcut ( "mesh.clear-pivot" , "Home" , typeof ( SceneViewWidget ) ) ]
134138 public void ClearPivot ( ) => _tool . ClearPivot ( ) ;
135139
0 commit comments