Allow routing to a free pad (even if it has a hole).

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15093
This commit is contained in:
Jeff Young 2023-07-01 14:21:38 +01:00
parent 63daf336b8
commit 6da71e5d24
1 changed files with 5 additions and 1 deletions

View File

@ -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; }