Bring footprint textvars in line with symbol textvars.
ADDED ${FOOTPRINT_LIBRARY} and ${FOOTPRINT_NAME} resolution.
This commit is contained in:
parent
653baf270c
commit
ab131859f6
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue