From a43adf7d4f165119a26576dd747c76025a288e08 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 1 Jul 2023 14:21:38 +0100 Subject: [PATCH] Allow routing to a free pad (even if it has a hole). Fixes https://gitlab.com/kicad/code/kicad/-/issues/15093 (cherry picked from commit 6da71e5d245d184bb5df450db6140f361a7336ea) --- pcbnew/router/pns_item.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcbnew/router/pns_item.h b/pcbnew/router/pns_item.h index 0b70cf9c26..b496d6676f 100644 --- a/pcbnew/router/pns_item.h +++ b/pcbnew/router/pns_item.h @@ -251,7 +251,11 @@ public: bool IsRoutable() const { return m_routable; } void SetIsFreePad( bool aIsFreePad = true ) { m_isFreePad = aIsFreePad; } - bool IsFreePad() const { return m_isFreePad; } + + bool IsFreePad() const + { + return m_isFreePad || ( ParentPadVia() && ParentPadVia()->m_isFreePad ); + } virtual ITEM* ParentPadVia() const { return nullptr; }