Eeschema Eagle Import: Set pin and pad name visibilities using text size.

This commit is contained in:
Russell Oliver 2017-07-17 02:13:10 +10:00 committed by Maciej Suminski
parent bb754b33d0
commit 05e9ec94f1
1 changed files with 24 additions and 0 deletions

View File

@ -1403,6 +1403,30 @@ LIB_PIN* SCH_EAGLE_PLUGIN::loadPin( LIB_PART* aPart, wxXmlNode* aPin )
} }
} }
if( epin.visible )
{
wxString visible = epin.visible.Get();
if( visible == "off" )
{
pin->SetNameTextSize( 0 );
pin->SetNumberTextSize( 0 );
}
else if (visible == "pad")
{
pin->SetNameTextSize( 0 );
}
else if( visible == "pin" )
{
pin->SetNumberTextSize( 0 );
}
/*
else if( visible == "both" )
{
}
*/
}
return pin.release(); return pin.release();
} }