3D Viewer: Only highlight what is under the cursor
Fixes https://gitlab.com/kicad/code/kicad/issues/10136
This commit is contained in:
parent
14c148cb38
commit
e9c29a4c1f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue