Fix pin check to allow for globals

Don't short-circuit adding global labels to the pins vector or we won't
search all subnets
This commit is contained in:
Seth Hillbrand 2024-01-16 16:35:07 -08:00
parent ace4ef7b16
commit ba6979a274
1 changed files with 1 additions and 4 deletions

View File

@ -3388,11 +3388,8 @@ bool CONNECTION_GRAPH::ercCheckNoConnects( const CONNECTION_SUBGRAPH* aSubgraph
{ {
SCH_PIN* test_pin = static_cast<SCH_PIN*>( item ); SCH_PIN* test_pin = static_cast<SCH_PIN*>( item );
if( test_pin->GetParentSymbol()->IsPower() )
continue;
// Stacked pins do not count as other connections but non-stacked pins do // Stacked pins do not count as other connections but non-stacked pins do
if( !has_other_connections && !pins.empty() ) if( !has_other_connections && !pins.empty() && !test_pin->GetParentSymbol()->IsPower() )
{ {
for( SCH_PIN* other_pin : pins ) for( SCH_PIN* other_pin : pins )
{ {