Fix Eagle arc importing.

Fixes https://gitlab.com/kicad/code/kicad/issues/9466
This commit is contained in:
Jeff Young 2021-10-27 02:36:27 +01:00
parent e14864b35c
commit e12f9a194d
1 changed files with 2 additions and 2 deletions

View File

@ -726,7 +726,7 @@ void EAGLE_PLUGIN::loadPlain( wxXmlNode* aGraphics )
shape->SetShape( SHAPE_T::ARC );
shape->SetCenter( center );
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 );
@ -1776,7 +1776,7 @@ void EAGLE_PLUGIN::packageWire( FOOTPRINT* aFootprint, wxXmlNode* aTree ) const
dwg->SetCenter0( center );
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 );