Don't report errors in first pass of board outline generation.

Segments which aren't used to build holes in footprints can still
be used by the second pass to build the board outline.

Fixes https://gitlab.com/kicad/code/kicad/issues/13321
This commit is contained in:
Jeff Young 2022-12-30 22:31:05 +00:00
parent c4fe9b70ed
commit 53b6993d2b
1 changed files with 4 additions and 1 deletions

View File

@ -634,7 +634,10 @@ bool BuildBoardPolygonOutlines( BOARD* aBoard, SHAPE_POLY_SET& aOutlines, int aE
{
SHAPE_POLY_SET fpOutlines;
success = ConvertOutlineToPolygon( fpSegList, fpOutlines, aErrorMax, aChainingEpsilon,
false, aErrorHandler );
false,
// don't report errors here; the second pass also
// gets an opportunity to use these segments
nullptr );
if( success && isCopperOutside( fp, fpOutlines ) )
{