From ee1b3271625652f6d81848c1f2b472f7d62bbab9 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 18 Dec 2021 17:30:18 +0100 Subject: [PATCH] 3D viewer: fix a minor cosmetic issue. Fixes #10002 https://gitlab.com/kicad/code/kicad/issues/10002 --- 3d-viewer/3d_canvas/eda_3d_canvas.cpp | 2 +- 3d-viewer/3d_canvas/eda_3d_canvas_pivot.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/3d-viewer/3d_canvas/eda_3d_canvas.cpp b/3d-viewer/3d_canvas/eda_3d_canvas.cpp index b7d1f29302..fc7a48c71d 100644 --- a/3d-viewer/3d_canvas/eda_3d_canvas.cpp +++ b/3d-viewer/3d_canvas/eda_3d_canvas.cpp @@ -518,7 +518,7 @@ void EDA_3D_CANVAS::DoRePaint() if( m_render_pivot ) { 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 diff --git a/3d-viewer/3d_canvas/eda_3d_canvas_pivot.cpp b/3d-viewer/3d_canvas/eda_3d_canvas_pivot.cpp index 8a6e89679c..c14e3b0730 100644 --- a/3d-viewer/3d_canvas/eda_3d_canvas_pivot.cpp +++ b/3d-viewer/3d_canvas/eda_3d_canvas_pivot.cpp @@ -102,7 +102,6 @@ void EDA_3D_CANVAS::render_pivot( float t , float aScale ) glTranslatef( lookAtPos.x, lookAtPos.y, lookAtPos.z ); glScalef( aScale, aScale, aScale ); - pivot_render_triangles( t * 0.5f ); t = t * 0.80f;