mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
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…
x
Reference in New Issue
Block a user