From 25b9a9de7e8bf45d305ae1548dc878deba04643d Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 16 Aug 2023 17:29:40 +0100 Subject: [PATCH] Fix incorrect assumption about Eagle spoke rotation. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15428 --- pcbnew/plugins/eagle/eagle_plugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/plugins/eagle/eagle_plugin.cpp b/pcbnew/plugins/eagle/eagle_plugin.cpp index 40e39219c9..cd130aaab4 100644 --- a/pcbnew/plugins/eagle/eagle_plugin.cpp +++ b/pcbnew/plugins/eagle/eagle_plugin.cpp @@ -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 ),