From 8cbe5c2184fa0320b8ff82f1fea205bb38198e38 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 13 Sep 2018 09:03:58 +0200 Subject: [PATCH] 3D viewer: Better axis rotation when selecting "Bottom view" It allows keeping texts on bottom side readable (rotation similar to the Flip board view in board editor) --- 3d-viewer/3d_canvas/eda_3d_canvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d-viewer/3d_canvas/eda_3d_canvas.cpp b/3d-viewer/3d_canvas/eda_3d_canvas.cpp index c077a6df76..26c7fb4222 100644 --- a/3d-viewer/3d_canvas/eda_3d_canvas.cpp +++ b/3d-viewer/3d_canvas/eda_3d_canvas.cpp @@ -1052,7 +1052,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(); - m_settings.CameraGet().RotateX_T1( glm::radians( -180.0f ) ); + m_settings.CameraGet().RotateY_T1( glm::radians( 180.0f ) ); request_start_moving_camera( glm::min( glm::max( m_settings.CameraGet().ZoomGet(), 0.5f ), 1.125f ) ); return true;