PNS: Don't use PNS margin to calc bump direction

The bump direction should only be concerned with physical points to
calculate the heuristic for loop-back otherwise we get too many false
positives.

Fixes https://gitlab.com/kicad/code/kicad/issues/3971
This commit is contained in:
Seth Hillbrand 2020-03-04 19:21:09 -06:00
parent e38ab6c699
commit 4c2626f6b0
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ bool SHOVE::checkBumpDirection( const LINE& aCurrent, const LINE& aShoved ) cons
{
const SEG& ss = aCurrent.CSegment( 0 );
int dist = getClearance( &aCurrent, &aShoved ) + PNS_HULL_MARGIN;
int dist = getClearance( &aCurrent, &aShoved );
dist += aCurrent.Width() / 2;
dist += aShoved.Width() / 2;