Easier control of zoom in 3D viewer.
Go to 3 steps per doubling (instead of 2), and start at 2/3 instead of 1/2.
This commit is contained in:
parent
ffe3fdf832
commit
9d0198bade
|
@ -956,7 +956,7 @@ bool EDA_3D_CANVAS::SetView3D( int aKeycode )
|
|||
m_settings.CameraGet().SetInterpolateMode( INTERPOLATION_BEZIER );
|
||||
m_settings.CameraGet().SetT0_and_T1_current_T();
|
||||
m_settings.CameraGet().Reset_T1();
|
||||
request_start_moving_camera( glm::min( glm::max( m_settings.CameraGet().ZoomGet(), 0.5f ), 1.125f ) );
|
||||
request_start_moving_camera( glm::min( glm::max( m_settings.CameraGet().ZoomGet(), 1/1.26f ), 1.26f ) );
|
||||
return true;
|
||||
|
||||
case WXK_END:
|
||||
|
@ -974,7 +974,7 @@ bool EDA_3D_CANVAS::SetView3D( int aKeycode )
|
|||
m_settings.CameraGet().SetInterpolateMode( INTERPOLATION_BEZIER );
|
||||
m_settings.CameraGet().SetT0_and_T1_current_T();
|
||||
|
||||
if( m_settings.CameraGet().Zoom_T1( 1.4f ) )
|
||||
if( m_settings.CameraGet().Zoom_T1( 1.26f ) ) // 3 steps per doubling
|
||||
request_start_moving_camera( 3.0f );
|
||||
|
||||
return true;
|
||||
|
@ -983,7 +983,7 @@ bool EDA_3D_CANVAS::SetView3D( int aKeycode )
|
|||
m_settings.CameraGet().SetInterpolateMode( INTERPOLATION_BEZIER );
|
||||
m_settings.CameraGet().SetT0_and_T1_current_T();
|
||||
|
||||
if( m_settings.CameraGet().Zoom_T1( 1/1.4f ) )
|
||||
if( m_settings.CameraGet().Zoom_T1( 1/1.26f ) ) // 3 steps per halving
|
||||
request_start_moving_camera( 3.0f );
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue