Export footprint pad holes to STEP regardless
Footprint pad holes form a part of the board outline regardless of whether the footprint is in the BOM or not Fixes https://gitlab.com/kicad/code/kicad/issues/14013
This commit is contained in:
parent
a6b1a09edf
commit
daf70f9b6a
|
@ -138,6 +138,13 @@ bool EXPORTER_STEP::composePCB( FOOTPRINT* aFootprint, VECTOR2D aOrigin )
|
|||
{
|
||||
bool hasdata = false;
|
||||
|
||||
// Dump the pad holes into the PCB
|
||||
for( PAD* pad : aFootprint->Pads() )
|
||||
{
|
||||
if( m_pcbModel->AddPadHole( pad, aOrigin ) )
|
||||
hasdata = true;
|
||||
}
|
||||
|
||||
if( ( aFootprint->GetAttributes() & FP_EXCLUDE_FROM_BOM ) && !m_params.m_includeExcludedBom )
|
||||
{
|
||||
return hasdata;
|
||||
|
@ -168,13 +175,6 @@ bool EXPORTER_STEP::composePCB( FOOTPRINT* aFootprint, VECTOR2D aOrigin )
|
|||
}
|
||||
}
|
||||
|
||||
// Dump the pad holes into the PCB
|
||||
for( PAD* pad : aFootprint->Pads() )
|
||||
{
|
||||
if( m_pcbModel->AddPadHole( pad, aOrigin ) )
|
||||
hasdata = true;
|
||||
}
|
||||
|
||||
// Exit early if we don't want to include footprint models
|
||||
if( m_params.m_boardOnly )
|
||||
{
|
||||
|
@ -389,4 +389,4 @@ bool EXPORTER_STEP::Export()
|
|||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue