3D viewer: fix a minor cosmetic issue. Fixes #10002 https://gitlab.com/kicad/code/kicad/issues/10002
This commit is contained in:
parent
da5f2366f9
commit
ee1b327162
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue