STEP export: fix missing zones (they were added too late in code)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18177
This commit is contained in:
jean-pierre charras 2024-06-09 17:32:34 +02:00
parent 3bb7b3722c
commit fb3730a9c0
1 changed files with 5 additions and 5 deletions

View File

@ -575,6 +575,11 @@ bool EXPORTER_STEP::buildBoard3DShapes()
for( BOARD_ITEM* item : m_board->Drawings() )
buildGraphic3DShape( item, origin );
if( m_params.m_exportZones )
{
buildZones3DShape( origin );
}
SHAPE_POLY_SET pcbOutlinesNoArcs = pcbOutlines;
pcbOutlinesNoArcs.ClearArcs();
@ -611,11 +616,6 @@ bool EXPORTER_STEP::buildBoard3DShapes()
m_pcbModel->AddPolygonShapes( &poly, pcblayer, origin );
}
if( m_params.m_exportZones )
{
buildZones3DShape( origin );
}
ReportMessage( wxT( "Create PCB solid model\n" ) );
wxString msg;