Fix incorrect assumption about Eagle spoke rotation.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15428
This commit is contained in:
Jeff Young 2023-08-16 17:29:40 +01:00
parent da031792af
commit 25b9a9de7e
1 changed files with 4 additions and 4 deletions

View File

@ -1967,8 +1967,8 @@ void EAGLE_PLUGIN::packagePad( FOOTPRINT* aFootprint, wxXmlNode* aTree )
if( e.rot )
pad->SetOrientation( EDA_ANGLE( e.rot->degrees, DEGREES_T ) );
// Eagle spokes are always NSEW in board coordinates
pad->SetThermalSpokeAngle( - ( aFootprint->GetOrientation() + pad->GetOrientation() ) );
// Eagle spokes are always '+'
pad->SetThermalSpokeAngle( ANGLE_0 );
if( pad->GetSizeX() > 0 && pad->GetSizeY() > 0 )
{
@ -2461,8 +2461,8 @@ void EAGLE_PLUGIN::packageSMD( FOOTPRINT* aFootprint, wxXmlNode* aTree ) const
if( e.rot )
pad->SetOrientation( EDA_ANGLE( e.rot->degrees, DEGREES_T ) );
// Eagle spokes are always NSEW in board coordinates
pad->SetThermalSpokeAngle( - ( aFootprint->GetOrientation() + pad->GetOrientation() ) );
// Eagle spokes are always '+'
pad->SetThermalSpokeAngle( ANGLE_0 );
pad->SetLocalSolderPasteMargin( -eagleClamp( m_rules->mlMinCreamFrame,
(int) ( m_rules->mvCreamFrame * minPadSize ),