Spokes are from center of pad, not from hole (ie: pad position).

Fixes https://gitlab.com/kicad/code/kicad/issues/8195
This commit is contained in:
Jeff Young 2021-04-14 11:33:46 +01:00
parent ccd4e48ccf
commit fe6cc0c3d8
1 changed files with 3 additions and 1 deletions

View File

@ -1303,7 +1303,9 @@ void ZONE_FILLER::buildThermalSpokes( const ZONE* aZone, PCB_LAYER_ID aLayer,
double padAngle = pad->GetOrientation();
PAD dummy_pad( *pad );
dummy_pad.SetOrientation( 0.0 );
dummy_pad.SetPosition( { 0, 0 } );
// Spokes are from center of pad, not from hole
dummy_pad.SetPosition( -pad->GetOffset() );
BOX2I reliefBB = dummy_pad.GetBoundingBox();
reliefBB.Inflate( thermalReliefGap + epsilon );