3D viewer: fix a minor cosmetic issue. Fixes #10002 https://gitlab.com/kicad/code/kicad/issues/10002

This commit is contained in:
jean-pierre charras 2021-12-18 17:30:18 +01:00
parent da5f2366f9
commit ee1b327162
2 changed files with 1 additions and 2 deletions

View File

@ -518,7 +518,7 @@ void EDA_3D_CANVAS::DoRePaint()
if( m_render_pivot ) if( m_render_pivot )
{ {
const float scale = glm::min( m_camera.GetZoom(), 1.0f ); const float scale = glm::min( m_camera.GetZoom(), 1.0f );
render_pivot( curtime_delta_s, scale * scale ); render_pivot( curtime_delta_s, scale );
} }
// "Swaps the double-buffer of this window, making the back-buffer the // "Swaps the double-buffer of this window, making the back-buffer the

View File

@ -102,7 +102,6 @@ void EDA_3D_CANVAS::render_pivot( float t , float aScale )
glTranslatef( lookAtPos.x, lookAtPos.y, lookAtPos.z ); glTranslatef( lookAtPos.x, lookAtPos.y, lookAtPos.z );
glScalef( aScale, aScale, aScale ); glScalef( aScale, aScale, aScale );
pivot_render_triangles( t * 0.5f ); pivot_render_triangles( t * 0.5f );
t = t * 0.80f; t = t * 0.80f;