Browse Source

Eagle SCH import: keep multi-unit parts not interchangeable

Eagle supports more sophisticated unit swapping information,
so the safest choice is to prevent any unit manipulation.
pull/17/head
Maciej Suminski 8 years ago
parent
commit
c8f4e1051b
  1. 1
      eeschema/sch_eagle_plugin.cpp

1
eeschema/sch_eagle_plugin.cpp

@ -1266,6 +1266,7 @@ EAGLE_LIBRARY* SCH_EAGLE_PLUGIN::loadLibrary( wxXmlNode* aLibraryNode,
wxXmlNode* gateNode = getChildrenNodes( aDeviceSetChildren, "gates" );
int gates_count = countChildren( aDeviceSetChildren["gates"], "gate" );
kpart->SetUnitCount( gates_count );
kpart->LockUnits( true );
LIB_FIELD* reference = kpart->GetField( REFERENCE );

Loading…
Cancel
Save