From 2cc2ba603e1e68a909a2efab689fc5ebdbf2d1cb Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 8 Jul 2025 18:16:10 +0200 Subject: [PATCH] Pad editor dlg: set the default thermal spoke to 90 deg for RR pad shape It was 45 deg, but this default value is good for round pads only, not for rectangular pad shapes. Fixes https://gitlab.com/kicad/code/kicad/-/issues/21271 (cherry picked from commit cef15bcf30da2226cc9628f0ba588703948a7b11) --- pcbnew/board_design_settings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcbnew/board_design_settings.cpp b/pcbnew/board_design_settings.cpp index 3bec219a04..ac7c8a061d 100644 --- a/pcbnew/board_design_settings.cpp +++ b/pcbnew/board_design_settings.cpp @@ -1554,4 +1554,9 @@ void BOARD_DESIGN_SETTINGS::SetDefaultMasterPad() constexpr double RR_RADIUS = DEFAULT_PAD_HEIGTH_MM * DEFAULT_PAD_RR_RADIUS_RATIO; m_Pad_Master->SetRoundRectCornerRadius( PADSTACK::ALL_LAYERS, pcbIUScale.mmToIU( RR_RADIUS ) ); + + if( m_Pad_Master->GetFrontShape() == PAD_SHAPE::CIRCLE ) + m_Pad_Master->SetThermalSpokeAngle( ANGLE_45 ); + else + m_Pad_Master->SetThermalSpokeAngle( ANGLE_90 ); }