From 0dc3ad45cd454f5e7e44ece147d80a0d4bad7ed4 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Fri, 16 Jan 2026 16:29:00 +0300 Subject: [PATCH] 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 --- pcbnew/router/pns_walkaround.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/router/pns_walkaround.cpp b/pcbnew/router/pns_walkaround.cpp index c739bd9174..b67b7cb887 100644 --- a/pcbnew/router/pns_walkaround.cpp +++ b/pcbnew/router/pns_walkaround.cpp @@ -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 ) {