PNS: Disable smart pads optimization for vias
There is not much point with the current algorithm and it breaks auto-posture.
This commit is contained in:
parent
94bf88d820
commit
4c0aa6db1a
|
@ -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…
Reference in New Issue