fixup! Implement MODULE::GetEffectiveShape()

This commit is contained in:
Jeff Young 2020-10-25 20:18:33 +00:00
parent 2f1e755f66
commit ccfa0f5189
1 changed files with 5 additions and 2 deletions

View File

@ -1674,7 +1674,7 @@ std::shared_ptr<SHAPE> MODULE::GetEffectiveShape( PCB_LAYER_ID aLayer ) const
// There are several possible interpretations here:
// 1) the bounding box (without or without invisible items)
// 2) just the pads and "edges" (ie: graphic items)
// 2) just the pads and "edges" (ie: non-text graphic items)
// 3) the courtyard
// We'll go with (2) for now....
@ -1683,7 +1683,10 @@ std::shared_ptr<SHAPE> MODULE::GetEffectiveShape( PCB_LAYER_ID aLayer ) const
shape->AddShape( pad->GetEffectiveShape( aLayer ).get() );
for( BOARD_ITEM* item : GraphicalItems() )
shape->AddShape( item->GetEffectiveShape( aLayer ).get() );
{
if( item->Type() == PCB_FP_SHAPE_T )
shape->AddShape( item->GetEffectiveShape( aLayer ).get() );
}
return shape;
}