Bring footprint textvars in line with symbol textvars.

ADDED ${FOOTPRINT_LIBRARY} and ${FOOTPRINT_NAME} resolution.
This commit is contained in:
Jeff Young 2022-04-18 10:09:43 +01:00
parent 653baf270c
commit ab131859f6
1 changed files with 10 additions and 0 deletions

View File

@ -480,6 +480,16 @@ bool FOOTPRINT::ResolveTextVar( wxString* token, int aDepth ) const
*token = GetLayerName();
return true;
}
else if( token->IsSameAs( wxT( "FOOTPRINT_LIBRARY" ) ) )
{
*token = m_fpid.GetLibNickname();
return true;
}
else if( token->IsSameAs( wxT( "FOOTPRINT_NAME" ) ) )
{
*token = m_fpid.GetLibItemName();
return true;
}
else if( m_properties.count( *token ) )
{
*token = m_properties.at( *token );