mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 20:11:41 +00:00
No more invisible (non-field) text.
This commit is contained in:
parent
9ac851b314
commit
b569d919ea
@ -956,9 +956,6 @@ void GenerateLayerPoly( SHAPE_POLY_SET* aResult, BOARD *aBoard, PCB_LAYER_ID aLa
|
||||
if( !aPlotFPText )
|
||||
return;
|
||||
|
||||
if( !aText.IsVisible() )
|
||||
return;
|
||||
|
||||
if( aText.GetText() == wxT( "${REFERENCE}" ) && !aPlotReferences )
|
||||
return;
|
||||
|
||||
@ -991,7 +988,7 @@ void GenerateLayerPoly( SHAPE_POLY_SET* aResult, BOARD *aBoard, PCB_LAYER_ID aLa
|
||||
if( field->IsValue() && !aPlotValues )
|
||||
continue;
|
||||
|
||||
if( field->IsOnLayer( aLayer ) )
|
||||
if( field->IsVisible() && field->IsOnLayer( aLayer ) )
|
||||
handleFPTextItem( static_cast<const PCB_TEXT&>( *field ) );
|
||||
}
|
||||
|
||||
|
@ -391,7 +391,8 @@ void BRDITEMS_PLOTTER::PlotFootprintTextItems( const FOOTPRINT* aFootprint )
|
||||
if( field->IsReference() || field->IsValue() )
|
||||
continue;
|
||||
|
||||
texts.push_back( field );
|
||||
if( field->IsVisible() )
|
||||
texts.push_back( field );
|
||||
}
|
||||
|
||||
for( BOARD_ITEM* item : aFootprint->GraphicalItems() )
|
||||
@ -402,9 +403,6 @@ void BRDITEMS_PLOTTER::PlotFootprintTextItems( const FOOTPRINT* aFootprint )
|
||||
|
||||
for( const PCB_TEXT* text : texts )
|
||||
{
|
||||
if( !text->IsVisible() )
|
||||
continue;
|
||||
|
||||
PCB_LAYER_ID textLayer = text->GetLayer();
|
||||
bool strikeout = false;
|
||||
|
||||
|
@ -1437,11 +1437,8 @@ bool PNS_KICAD_IFACE_BASE::syncTextItem( PNS::NODE* aWorld, BOARD_ITEM* aItem, P
|
||||
if( !IsKicadCopperLayer( aLayer ) )
|
||||
return false;
|
||||
|
||||
if( ( aItem->Type() == PCB_FIELD_T || aItem->Type() == PCB_TEXT_T )
|
||||
&& !static_cast<PCB_TEXT*>( aItem )->IsVisible() )
|
||||
{
|
||||
if( aItem->Type() == PCB_FIELD_T && !static_cast<PCB_FIELD*>( aItem )->IsVisible() )
|
||||
return false;
|
||||
}
|
||||
|
||||
std::unique_ptr<PNS::SOLID> solid = std::make_unique<PNS::SOLID>();
|
||||
SHAPE_SIMPLE* shape = new SHAPE_SIMPLE;
|
||||
|
Loading…
Reference in New Issue
Block a user