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:
parent
3bb7b3722c
commit
fb3730a9c0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue