PCB Parsing: only parse old properties before PCB fields addition

This commit is contained in:
Mike Williams 2024-02-14 09:33:31 -05:00
parent e0bdd956ac
commit 6c1273ca12
1 changed files with 37 additions and 32 deletions

View File

@ -4051,6 +4051,10 @@ FOOTPRINT* PCB_IO_KICAD_SEXPR_PARSER::parseFOOTPRINT_unchecked( wxArrayString* a
NeedSYMBOL();
wxString pValue = FromUTF8();
// Prior to PCB fields, we used to use properties for special values instead of
// using (keyword_example "value")
if( m_requiredVersion < 20230620 )
{
// Skip legacy non-field properties sent from symbols that should not be kept
// in footprints.
if( pName == "ki_keywords" || pName == "ki_locked" )
@ -4089,6 +4093,7 @@ FOOTPRINT* PCB_IO_KICAD_SEXPR_PARSER::parseFOOTPRINT_unchecked( wxArrayString* a
NeedRIGHT();
break;
}
}
PCB_FIELD* field = nullptr;