Fix pad offset removal vs hole offset
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16767
This commit is contained in:
parent
ee5e2e56c0
commit
b12d0dfd67
|
@ -1648,6 +1648,7 @@ void PCB_IO_IPC2581::addPadStack( wxXmlNode* aPadNode, const PAD* aPad )
|
|||
addAttribute( padStackHoleNode, "platingStatus", aPad->GetAttribute() == PAD_ATTRIB::PTH ? "PLATED" : "NONPLATED" );
|
||||
addAttribute( padStackHoleNode, "plusTol", "0.0" );
|
||||
addAttribute( padStackHoleNode, "minusTol", "0.0" );
|
||||
addXY( padStackHoleNode, aPad->GetOffset() );
|
||||
}
|
||||
|
||||
LSEQ layer_seq = aPad->GetLayerSet().Seq();
|
||||
|
@ -1663,8 +1664,6 @@ void PCB_IO_IPC2581::addPadStack( wxXmlNode* aPadNode, const PAD* aPad )
|
|||
addAttribute( padStackPadDefNode, "layerRef", m_layer_name_map[layer] );
|
||||
addAttribute( padStackPadDefNode, "padUse", "REGULAR" );
|
||||
|
||||
addLocationNode( padStackPadDefNode, *aPad, true );
|
||||
|
||||
if( aPad->HasHole() || !aPad->FlashLayer( layer ) )
|
||||
{
|
||||
PCB_SHAPE shape( nullptr, SHAPE_T::CIRCLE );
|
||||
|
|
Loading…
Reference in New Issue