7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-20 15:01:41 +00:00

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

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