Convert graphic polygons on CrtYd layers to lines

Same restriction as Edge_Cuts, due to their intended purpose polygons
don't make sense.
This commit is contained in:
Michael Kavanagh 2020-04-24 00:13:24 +01:00 committed by Ian McInerney
parent fa57c8a570
commit e05f36f9a7
1 changed files with 4 additions and 1 deletions

View File

@ -196,8 +196,11 @@ void ZONE_CREATE_HELPER::commitZone( std::unique_ptr<ZONE_CONTAINER> aZone )
{
BOARD_COMMIT bCommit( &m_tool );
BOARD_ITEM_CONTAINER* parent = m_tool.m_frame->GetModel();
LSET graphicPolygonsLayers = LSET::AllLayersMask();
if( m_tool.getDrawingLayer() != Edge_Cuts )
graphicPolygonsLayers.reset( Edge_Cuts ).reset( F_CrtYd ).reset( B_CrtYd );
if( graphicPolygonsLayers.Contains( m_tool.getDrawingLayer() ) )
{
auto poly = m_tool.m_editModules ? new EDGE_MODULE( (MODULE *) parent )
: new DRAWSEGMENT();