Don't resolve footprint text variables in footprint editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/12658
This commit is contained in:
parent
0d7185c2ff
commit
b012cc1ac3
|
@ -480,6 +480,9 @@ void FOOTPRINT::GetContextualTextVars( wxArrayString* aVars ) const
|
||||||
|
|
||||||
bool FOOTPRINT::ResolveTextVar( wxString* token, int aDepth ) const
|
bool FOOTPRINT::ResolveTextVar( wxString* token, int aDepth ) const
|
||||||
{
|
{
|
||||||
|
if( GetBoard() && GetBoard()->GetBoardUse() == BOARD_USE::FPHOLDER )
|
||||||
|
return false;
|
||||||
|
|
||||||
if( token->IsSameAs( wxT( "REFERENCE" ) ) )
|
if( token->IsSameAs( wxT( "REFERENCE" ) ) )
|
||||||
{
|
{
|
||||||
*token = m_reference->GetShownText( aDepth + 1 );
|
*token = m_reference->GetShownText( aDepth + 1 );
|
||||||
|
|
Loading…
Reference in New Issue