router: fix getting stuck when routing right next to other tracks in Walkaround mode.

The walkround algorithm fails if the path points are inside the padded hull,
so remove the extra hull clearance padding.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20117
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21813
This commit is contained in:
Alex Shvartzkop
2026-01-16 16:29:00 +03:00
parent 16bde88f7d
commit 0dc3ad45cd
+1 -1
View File
@@ -164,7 +164,7 @@ bool WALKAROUND::singleStep()
}
int clearance = m_world->GetClearance( clItem, &aLine, false );
SHAPE_LINE_CHAIN hull = clItem->Hull( clearance + 1000, aLine.Width(), aLine.Layer() );
SHAPE_LINE_CHAIN hull = clItem->Hull( clearance, aLine.Width(), aLine.Layer() );
if( cornerMode == DIRECTION_45::MITERED_90 || cornerMode == DIRECTION_45::ROUNDED_90 )
{