mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +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();
|
*token = GetLayerName();
|
||||||
return true;
|
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 ) )
|
else if( m_properties.count( *token ) )
|
||||||
{
|
{
|
||||||
*token = m_properties.at( *token );
|
*token = m_properties.at( *token );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user