From bcc3767c2a52de4c7e238176666fdff03f00a559 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 27 Feb 2021 06:58:04 -0800 Subject: [PATCH] FABMASTER: Fill both kinds of silk polys Silkscreen polygons are always filled (I think) in FABMASTER. Other layer polygons are not --- pcbnew/plugins/fabmaster/import_fabmaster.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pcbnew/plugins/fabmaster/import_fabmaster.cpp b/pcbnew/plugins/fabmaster/import_fabmaster.cpp index f275b70590..b9b242eb77 100644 --- a/pcbnew/plugins/fabmaster/import_fabmaster.cpp +++ b/pcbnew/plugins/fabmaster/import_fabmaster.cpp @@ -2546,6 +2546,21 @@ bool FABMASTER::loadPolygon( BOARD* aBoard, const std::unique_ptrSetShape( S_POLYGON ); new_poly->SetLayer( layer ); + + // Polygons on the silk layer are filled but other layers are not/fill doesn't make sense + if( layer == F_SilkS || layer == B_SilkS ) + { + new_poly->SetFilled( true ); + new_poly->SetWidth( 0 ); + } + else + { + new_poly->SetWidth( ( *( aLine->segment.begin() ) )->width ); + + if( new_poly->GetWidth() == 0 ) + new_poly->SetWidth( aBoard->GetDesignSettings().GetLineThickness( layer ) ); + } + new_poly->SetPolyShape( poly_outline ); aBoard->Add( new_poly, ADD_MODE::APPEND );