Update pad netnames (and numbers) to the new visibility architecture.

This commit is contained in:
Jeff Young 2021-01-28 23:30:59 +00:00
parent 21bec6c016
commit 74a5db64c2
2 changed files with 7 additions and 1 deletions

View File

@ -277,7 +277,8 @@ void PCB_DRAW_PANEL_GAL::SetHighContrastLayer( PCB_LAYER_ID aLayer )
// fixme do not like the idea of storing the list of layers here,
// should be done in some other way I guess..
LAYER_NUM layers[] = {
GetNetnameLayer( aLayer ),
GetNetnameLayer( aLayer ), LAYER_VIAS_NETNAMES,
LAYER_PAD_FR_NETNAMES, LAYER_PAD_BK_NETNAMES, LAYER_PADS_NETNAMES,
ZONE_LAYER_FOR( aLayer ),
LAYER_PADS_TH, LAYER_PADS_PLATEDHOLES, LAYER_NON_PLATEDHOLES,
LAYER_VIA_THROUGH, LAYER_VIA_BBLIND, LAYER_VIA_MICROVIA,

View File

@ -338,6 +338,11 @@ COLOR4D PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer ) cons
if( !static_cast<const TRACK*>( item )->IsOnLayer( primary ) )
isActive = false;
}
else if( item->Type() == PCB_PAD_T )
{
if( !static_cast<const PAD*>( item )->FlashLayer( primary ) )
isActive = false;
}
if( !isActive )
{