Browse Source

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

6.0.7
Jeff Young 5 years ago
parent
commit
74a5db64c2
  1. 3
      pcbnew/pcb_draw_panel_gal.cpp
  2. 5
      pcbnew/pcb_painter.cpp

3
pcbnew/pcb_draw_panel_gal.cpp

@ -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,

5
pcbnew/pcb_painter.cpp

@ -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 )
{

Loading…
Cancel
Save