Don't skip highlighting selected NPTH/via holes

This commit is contained in:
Jon Evans 2024-01-24 08:23:13 -05:00
parent b6ddef7162
commit 64221b95c9
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ void RENDER_SETTINGS::update()
m_layerColorsHi[i] = m_layerColors[i].Brightened( m_highlightFactor );
m_layerColorsDark[i] = m_layerColors[i].Darkened( 1.0 - m_highlightFactor );
if( IsNetnameLayer( i ) || IsHoleLayer( i ) )
// Skip selection brightening for things close to black, and netname text
if( IsNetnameLayer( i ) || m_layerColors[i].GetBrightness() < 0.05 )
{
m_layerColorsSel[i] = m_layerColors[i];
continue;