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:
parent
430310bb75
commit
5079881f3f
|
@ -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" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue