BuildFootprintPolygonOutlines(): fix incorrect outlines when no pad in the footprint.

It is used in 3D viewer to build a "board" polygonal outlines.
The polygon was empty when no pad and no item on ede cuts found (i.e. logos)
Fixes #7448
https://gitlab.com/kicad/code/kicad/issues/7448
This commit is contained in:
jean-pierre charras 2021-02-10 08:45:17 +01:00
parent 430310bb75
commit 5079881f3f
1 changed files with 2 additions and 2 deletions

View File

@ -1120,8 +1120,8 @@ bool BuildFootprintPolygonOutlines( BOARD* aBoard, SHAPE_POLY_SET& aOutlines, in
return false;
}
// A closed outline was found
if( success )
// A closed outline was found on Edge_Cuts
if( success && outlines.OutlineCount() )
{
wxLogTrace( traceBoardOutline, "Closed outline found" );