Browse Source

Don't attempt to knockout self from hatching.

revert-0c36e162
Jeff Young 7 months ago
parent
commit
b532a849b8
  1. 10
      pcbnew/pcb_shape.cpp

10
pcbnew/pcb_shape.cpp

@ -335,17 +335,17 @@ void PCB_SHAPE::updateHatching() const
if( item->GetLayer() == layer && item->GetBoundingBox().Intersects( bbox ) )
knockoutItem( item );
}
}
for( FOOTPRINT* footprint : GetBoard()->Footprints() )
{
int margin = GetHatchLineSpacing() / 2;
SHAPE_POLY_SET hull = footprint->GetBoundingHull( layer );
if( footprint == GetParentFootprint() )
continue;
hull.Inflate( margin, CORNER_STRATEGY::CHAMFER_ACUTE_CORNERS, maxError );
holes.Append( hull );
// Knockout footprint courtyard
holes.Append( footprint->GetCourtyard( layer ) );
// Knockout footprint fields
footprint->RunOnDescendants(
[&]( BOARD_ITEM* item )
{

Loading…
Cancel
Save