Browse Source

PNS: Disable smart pads optimization for vias

There is not much point with the current algorithm and it
breaks auto-posture.
6.0.7
Jon Evans 5 years ago
parent
commit
4c0aa6db1a
  1. 4
      pcbnew/router/pns_optimizer.cpp

4
pcbnew/router/pns_optimizer.cpp

@ -908,6 +908,10 @@ int OPTIMIZER::smartPadsSingle( LINE* aLine, ITEM* aPad, bool aEnd, int aEndVert
if( solid && solid->Offset() != VECTOR2I( 0, 0 ) )
return -1;
// don't do optimization on vias, they are always round at the moment and the optimizer
// will possibly mess up an intended via exit posture
if( aPad->Kind() == ITEM::VIA_T )
return -1;
BREAKOUT_LIST breakouts = computeBreakouts( aLine->Width(), aPad, true );
SHAPE_LINE_CHAIN line = ( aEnd ? aLine->CLine().Reverse() : aLine->CLine() );

Loading…
Cancel
Save