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:
parent
63daf336b8
commit
6da71e5d24
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue