Use StandardPrimitive library for vias
Some 2581 parsers don't like to consider UserPrimitive even though they are essentially the same thing and required by the standard. ¯\_(ツ)_/¯ Fixes https://gitlab.com/kicad/code/kicad/-/issues/16661
This commit is contained in:
parent
eb0708d48d
commit
13735050da
|
@ -1623,11 +1623,13 @@ void PCB_IO_IPC2581::addVia( wxXmlNode* aContentNode, const PCB_VIA* aVia, PCB_L
|
|||
addPadStack( padNode, aVia );
|
||||
addLocationNode( padNode, aVia->GetPosition().x, aVia->GetPosition().y );
|
||||
|
||||
PCB_SHAPE shape( nullptr, SHAPE_T::CIRCLE );
|
||||
|
||||
shape.SetEnd( { KiROUND( aVia->GetWidth() / 2.0 ), 0 } );
|
||||
addShape( padNode, shape );
|
||||
PAD dummy( nullptr );
|
||||
int hole = aVia->GetDrillValue();
|
||||
dummy.SetDrillSize( VECTOR2I( hole, hole ) );
|
||||
dummy.SetPosition( aVia->GetStart() );
|
||||
dummy.SetSize( VECTOR2I( aVia->GetWidth(), aVia->GetWidth() ) );
|
||||
|
||||
addShape( padNode, dummy, aLayer );
|
||||
}
|
||||
|
||||
void PCB_IO_IPC2581::addPadStack( wxXmlNode* aPadNode, const PAD* aPad )
|
||||
|
|
Loading…
Reference in New Issue