Reconcile solder_paste_ratio and solder_paste_margin_ratio.

This commit is contained in:
Jeff Young 2024-02-25 21:25:44 +00:00
parent 532645c9b0
commit 9066e4b9d0
3 changed files with 7 additions and 5 deletions

View File

@ -1217,7 +1217,7 @@ void PCB_IO_KICAD_SEXPR::format( const FOOTPRINT* aFootprint, int aNestLevel ) c
if( aFootprint->GetLocalSolderPasteMarginRatio().has_value() )
{
m_out->Print( aNestLevel+1, "(solder_paste_ratio %s)\n",
m_out->Print( aNestLevel+1, "(solder_paste_margin_ratio %s)\n",
FormatDouble2Str( aFootprint->GetLocalSolderPasteMarginRatio().value() ).c_str() );
}

View File

@ -151,8 +151,9 @@ class PCB_IO_KICAD_SEXPR; // forward decl
//#define SEXPR_BOARD_FILE_VERSION 20231231 // Use 'uuid' rather than 'id' for generators and groups
//#define SEXPR_BOARD_FILE_VERSION 20240108 // Convert teardrop parameters to explicit bools
//----------------- Start of 9.0 development -----------------
//define SEXPR_BOARD_FILE_VERSION 20240201 // Use nullable properties for overrides
#define SEXPR_BOARD_FILE_VERSION 20240202 // Tables
//#define SEXPR_BOARD_FILE_VERSION 20240201 // Use nullable properties for overrides
//#define SEXPR_BOARD_FILE_VERSION 20240202 // Tables
#define SEXPR_BOARD_FILE_VERSION 20240225 // Rationalization of solder_paste_margin
#define BOARD_FILE_HOST_VERSION 20200825 ///< Earlier files than this include the host tag
#define LEGACY_ARC_FORMATTING 20210925 ///< These were the last to use old arc formatting

View File

@ -4444,7 +4444,8 @@ FOOTPRINT* PCB_IO_KICAD_SEXPR_PARSER::parseFOOTPRINT_unchecked( wxArrayString* a
break;
case T_solder_paste_ratio:
case T_solder_paste_ratio: // legacy token
case T_solder_paste_margin_ratio:
footprint->SetLocalSolderPasteMarginRatio( parseDouble( "local solder paste margin ratio value" ) );
NeedRIGHT();
@ -4623,7 +4624,7 @@ FOOTPRINT* PCB_IO_KICAD_SEXPR_PARSER::parseFOOTPRINT_unchecked( wxArrayString* a
default:
Expecting( "locked, placed, tedit, tstamp, uuid, at, descr, tags, path, "
"autoplace_cost90, autoplace_cost180, solder_mask_margin, "
"solder_paste_margin, solder_paste_ratio, clearance, "
"solder_paste_margin, solder_paste_margin_ratio, clearance, "
"zone_connect, thermal_gap, attr, fp_text, "
"fp_arc, fp_circle, fp_curve, fp_line, fp_poly, fp_rect, pad, "
"zone, group, generator, version or model" );