Dimensions for footprints.

Fixes https://gitlab.com/kicad/code/kicad/issues/8441
This commit is contained in:
Jeff Young
2021-12-24 21:10:28 +00:00
parent b84a85f648
commit fa908e1f98
42 changed files with 539 additions and 299 deletions
+13 -3
View File
@@ -531,10 +531,20 @@ void BRDITEMS_PLOTTER::PlotFootprintGraphicItems( const FOOTPRINT* aFootprint )
{
for( const BOARD_ITEM* item : aFootprint->GraphicalItems() )
{
const FP_SHAPE* shape = dynamic_cast<const FP_SHAPE*>( item );
if( item->Type() == PCB_FP_SHAPE_T )
{
const FP_SHAPE* shape = static_cast<const FP_SHAPE*>( item );
if( shape && m_layerMask[ shape->GetLayer() ] )
PlotFootprintGraphicItem( shape );
if( m_layerMask[ shape->GetLayer() ] )
PlotFootprintGraphicItem( shape );
}
else if( BaseType( item->Type() ) == PCB_DIMENSION_T )
{
const PCB_DIMENSION_BASE* dimension = static_cast<const PCB_DIMENSION_BASE*>( item );
if( m_layerMask[ dimension->GetLayer() ] )
PlotDimension( dimension );
}
}
}