Allow NIC pins to be stacked
Previously, we only allowed pins of the same time as well as passive
pins to be stacked. This change allows NIC pins as well since they are
not internally connected, there is no reason that they cannot be tied to
another pin electrically
(cherry picked from commit 0e0ada8e4e
)
This commit is contained in:
parent
491bb6e57a
commit
66bd0f850a
|
@ -286,11 +286,16 @@ void SCH_PIN::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITE
|
|||
|
||||
bool SCH_PIN::IsStacked( const SCH_PIN* aPin ) const
|
||||
{
|
||||
bool isConnectableType_a = GetType() == ELECTRICAL_PINTYPE::PT_PASSIVE
|
||||
|| GetType() == ELECTRICAL_PINTYPE::PT_NIC;
|
||||
bool isConnectableType_b = aPin->GetType() == ELECTRICAL_PINTYPE::PT_PASSIVE
|
||||
|| aPin->GetType() == ELECTRICAL_PINTYPE::PT_NIC;
|
||||
|
||||
return m_parent == aPin->GetParent()
|
||||
&& GetTransformedPosition() == aPin->GetTransformedPosition()
|
||||
&& GetName() == aPin->GetName()
|
||||
&& ( ( GetType() == aPin->GetType() ) || ( GetType() == ELECTRICAL_PINTYPE::PT_PASSIVE )
|
||||
|| ( aPin->GetType() == ELECTRICAL_PINTYPE::PT_PASSIVE ) );
|
||||
&& ( ( GetType() == aPin->GetType() )
|
||||
|| isConnectableType_a || isConnectableType_b );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue