Browse Source

Eeschema Eagle Import: Import pins even if Eagle even if pin to pad mapping (connects) to found. Fixes missing pins in supply symbols.

pull/5/merge
Russell Oliver 8 years ago
committed by Maciej Suminski
parent
commit
03739a4d37
  1. 28
      eeschema/sch_eagle_plugin.cpp

28
eeschema/sch_eagle_plugin.cpp

@ -894,19 +894,29 @@ void SCH_EAGLE_PLUGIN::loadSymbol( wxXmlNode* aSymbolNode,
{ {
LIB_PIN* pin = loadPin( aPart, currentNode ); LIB_PIN* pin = loadPin( aPart, currentNode );
for( auto connect : aDevice->connects )
if(aDevice->connects.size() != 0)
{ {
if( connect.gate == gateName and pin->GetName().ToStdString() == connect.pin )
for( auto connect : aDevice->connects )
{ {
wxString padname( connect.pad );
pin->SetPinNumFromString( padname );
pin->SetPartNumber( gateNumber );
pin->SetUnit( gateNumber );
aPart->AddDrawItem( pin );
break;
if( connect.gate == gateName and pin->GetName().ToStdString() == connect.pin )
{
wxString padname( connect.pad );
pin->SetPinNumFromString( padname );
pin->SetPartNumber( gateNumber );
pin->SetUnit( gateNumber );
aPart->AddDrawItem( pin );
break;
}
} }
} }
else
{
pin->SetPartNumber( gateNumber );
pin->SetUnit( gateNumber );
aPart->AddDrawItem( pin );
break;
}
} }
else if( nodeName == "polygon" ) else if( nodeName == "polygon" )
{ {

Loading…
Cancel
Save