Fabmaster (CADENCE ASCII) import: fix position and orientation of footprint graphics.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17239
(cherry picked from commit cb4ace5561
)
This commit is contained in:
parent
7dc554ec34
commit
f9253485da
|
@ -2107,9 +2107,6 @@ bool FABMASTER::loadFootprints( BOARD* aBoard )
|
|||
|
||||
line->SetStroke( STROKE_PARAMS( lsrc->width, LINE_STYLE::SOLID ) );
|
||||
|
||||
line->Rotate( { 0, 0 }, fp->GetOrientation() );
|
||||
line->Move( fp->GetPosition() );
|
||||
|
||||
if( lsrc->width == 0 )
|
||||
line->SetStroke( defaultStroke );
|
||||
|
||||
|
@ -2127,9 +2124,6 @@ bool FABMASTER::loadFootprints( BOARD* aBoard )
|
|||
circle->SetEnd( VECTOR2I( lsrc->end_x, lsrc->end_y ) );
|
||||
circle->SetWidth( lsrc->width );
|
||||
|
||||
circle->Rotate( { 0, 0 }, fp->GetOrientation() );
|
||||
circle->Move( fp->GetPosition() );
|
||||
|
||||
if( lsrc->width == 0 )
|
||||
circle->SetWidth( ds.GetLineThickness( circle->GetLayer() ) );
|
||||
|
||||
|
@ -2151,9 +2145,6 @@ bool FABMASTER::loadFootprints( BOARD* aBoard )
|
|||
lsrc->result.GetP1() );
|
||||
arc->SetStroke( STROKE_PARAMS( lsrc->width, LINE_STYLE::SOLID ) );
|
||||
|
||||
arc->Rotate( { 0, 0 }, fp->GetOrientation() );
|
||||
arc->Move( fp->GetPosition() );
|
||||
|
||||
if( lsrc->width == 0 )
|
||||
arc->SetStroke( defaultStroke );
|
||||
|
||||
|
@ -2185,9 +2176,6 @@ bool FABMASTER::loadFootprints( BOARD* aBoard )
|
|||
|
||||
rect->SetStroke( defaultStroke );
|
||||
|
||||
rect->Rotate( { 0, 0 }, fp->GetOrientation() );
|
||||
rect->Move( fp->GetPosition() );
|
||||
|
||||
fp->Add( rect, ADD_MODE::APPEND );
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue