Fix Eagle arc importing.
Fixes https://gitlab.com/kicad/code/kicad/issues/9466
This commit is contained in:
parent
e14864b35c
commit
e12f9a194d
|
@ -726,7 +726,7 @@ void EAGLE_PLUGIN::loadPlain( wxXmlNode* aGraphics )
|
||||||
shape->SetShape( SHAPE_T::ARC );
|
shape->SetShape( SHAPE_T::ARC );
|
||||||
shape->SetCenter( center );
|
shape->SetCenter( center );
|
||||||
shape->SetStart( start );
|
shape->SetStart( start );
|
||||||
shape->SetArcAngleAndEnd( *w.curve * -10.0 ); // KiCad rotates the other way
|
shape->SetArcAngleAndEnd( *w.curve * -10.0, true ); // KiCad rotates the other way
|
||||||
}
|
}
|
||||||
|
|
||||||
shape->SetLayer( layer );
|
shape->SetLayer( layer );
|
||||||
|
@ -1776,7 +1776,7 @@ void EAGLE_PLUGIN::packageWire( FOOTPRINT* aFootprint, wxXmlNode* aTree ) const
|
||||||
|
|
||||||
dwg->SetCenter0( center );
|
dwg->SetCenter0( center );
|
||||||
dwg->SetStart0( start );
|
dwg->SetStart0( start );
|
||||||
dwg->SetArcAngleAndEnd0( *w.curve * -10.0 ); // KiCad rotates the other way
|
dwg->SetArcAngleAndEnd0( *w.curve * -10.0, true ); // KiCad rotates the other way
|
||||||
}
|
}
|
||||||
|
|
||||||
dwg->SetLayer( layer );
|
dwg->SetLayer( layer );
|
||||||
|
|
Loading…
Reference in New Issue