3D Viewer: Only highlight what is under the cursor

Fixes https://gitlab.com/kicad/code/kicad/issues/10136
This commit is contained in:
Mikolaj Wielgus 2021-12-28 00:48:37 +01:00
parent 14c148cb38
commit e9c29a4c1f
1 changed files with 4 additions and 1 deletions

View File

@ -1174,8 +1174,11 @@ void RENDER_3D_OPENGL::render3dModelsSelected( bool aRenderTopOrBot, bool aRende
if( fp->IsSelected() )
highlight = true;
if( m_boardAdapter.m_Cfg->m_Render.opengl_highlight_on_rollover )
if( m_boardAdapter.m_Cfg->m_Render.opengl_highlight_on_rollover
&& fp == m_currentRollOverItem )
{
highlight = true;
}
if( aRenderSelectedOnly != highlight )
continue;