Print out footprint texts placed on layers different than silkscreen.
This commit is contained in:
parent
cfeabde282
commit
2db1b3adc8
|
@ -350,22 +350,11 @@ static void Print_Module( EDA_DRAW_PANEL* aPanel, wxDC* aDC, MODULE* aModule,
|
||||||
pad->SetDrillSize( drill_tmp );
|
pad->SetDrillSize( drill_tmp );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print footprint graphic shapes
|
if( aModule->Reference().IsVisible() && aMask[aModule->Reference().GetLayer()] )
|
||||||
LSET mlayer( aModule->GetLayer() );
|
aModule->Reference().Draw( aPanel, aDC, aDraw_mode );
|
||||||
|
|
||||||
if( aModule->GetLayer() == B_Cu )
|
if( aModule->Value().IsVisible() && aMask[aModule->Value().GetLayer()] )
|
||||||
mlayer = LSET( B_SilkS );
|
aModule->Value().Draw( aPanel, aDC, aDraw_mode );
|
||||||
else if( aModule->GetLayer() == F_Cu )
|
|
||||||
mlayer = LSET( F_SilkS );
|
|
||||||
|
|
||||||
if( ( mlayer & aMask ).any() )
|
|
||||||
{
|
|
||||||
if( aModule->Reference().IsVisible() )
|
|
||||||
aModule->Reference().Draw( aPanel, aDC, aDraw_mode );
|
|
||||||
|
|
||||||
if( aModule->Value().IsVisible() )
|
|
||||||
aModule->Value().Draw( aPanel, aDC, aDraw_mode );
|
|
||||||
}
|
|
||||||
|
|
||||||
for( EDA_ITEM* item = aModule->GraphicalItems(); item; item = item->Next() )
|
for( EDA_ITEM* item = aModule->GraphicalItems(); item; item = item->Next() )
|
||||||
{
|
{
|
||||||
|
@ -373,10 +362,11 @@ static void Print_Module( EDA_DRAW_PANEL* aPanel, wxDC* aDC, MODULE* aModule,
|
||||||
{
|
{
|
||||||
case PCB_MODULE_TEXT_T:
|
case PCB_MODULE_TEXT_T:
|
||||||
{
|
{
|
||||||
if( !( mlayer & aMask ).any() )
|
TEXTE_MODULE* textMod = static_cast<TEXTE_MODULE*>( item );
|
||||||
|
|
||||||
|
if( !aMask[textMod->GetLayer()] )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
TEXTE_MODULE* textMod = static_cast<TEXTE_MODULE*>( item );
|
|
||||||
textMod->Draw( aPanel, aDC, aDraw_mode );
|
textMod->Draw( aPanel, aDC, aDraw_mode );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue