Backannotation: skip fields that are individually controlled

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/15337
This commit is contained in:
Mike Williams 2023-08-03 09:09:13 -04:00
parent c61da43ee2
commit a0d559e884
1 changed files with 8 additions and 0 deletions

View File

@ -499,6 +499,14 @@ void BACK_ANNOTATE::applyChangelist()
const wxString& fpFieldValue = field.second;
SCH_FIELD* symField = symbol->FindField( fpFieldName );
// Skip fields that are individually controlled
if( fpFieldName == TEMPLATE_FIELDNAME::GetDefaultFieldName( REFERENCE_FIELD )
|| fpFieldName == TEMPLATE_FIELDNAME::GetDefaultFieldName( VALUE_FIELD )
|| fpFieldName == TEMPLATE_FIELDNAME::GetDefaultFieldName( FOOTPRINT_FIELD ) )
{
continue;
}
// 1. Existing fields has changed value
// PCB Field value is checked against the shown text because this is the value
// with all the variables resolved. The footprints field value gets the symbol's