SCH -> PCB Fields: bump file versions

This commit is contained in:
Mike Williams 2023-06-20 12:59:06 -04:00
parent 86e0e1cccb
commit 1d26b454f4
3 changed files with 11 additions and 4 deletions

View File

@ -47,7 +47,8 @@
//#define SEXPR_SYMBOL_LIB_FILE_VERSION 20220328 // Text box start/end -> at/size. //#define SEXPR_SYMBOL_LIB_FILE_VERSION 20220328 // Text box start/end -> at/size.
//#define SEXPR_SYMBOL_LIB_FILE_VERSION 20220331 // Text colors. //#define SEXPR_SYMBOL_LIB_FILE_VERSION 20220331 // Text colors.
//#define SEXPR_SYMBOL_LIB_FILE_VERSION 20220914 // Symbol unit display names. //#define SEXPR_SYMBOL_LIB_FILE_VERSION 20220914 // Symbol unit display names.
#define SEXPR_SYMBOL_LIB_FILE_VERSION 20220914 // Don't save property ID //#define SEXPR_SYMBOL_LIB_FILE_VERSION 20220914 // Don't save property ID
#define SEXPR_SYMBOL_LIB_FILE_VERSION 20230620 // ki_description -> Description Field
/** /**
* Schematic file version. * Schematic file version.
@ -96,4 +97,5 @@
//#define SEXPR_SCHEMATIC_FILE_VERSION 20221206 // Simulation model fields V6 -> V7 //#define SEXPR_SCHEMATIC_FILE_VERSION 20221206 // Simulation model fields V6 -> V7
//#define SEXPR_SCHEMATIC_FILE_VERSION 20230121 // SCH_MARKER specific sheet path serialisation //#define SEXPR_SCHEMATIC_FILE_VERSION 20230121 // SCH_MARKER specific sheet path serialisation
//#define SEXPR_SCHEMATIC_FILE_VERSION 20230221 // Modern power symbols (editable value = net) //#define SEXPR_SCHEMATIC_FILE_VERSION 20230221 // Modern power symbols (editable value = net)
#define SEXPR_SCHEMATIC_FILE_VERSION 20230409 // Add exclude_from_sim markup //#define SEXPR_SCHEMATIC_FILE_VERSION 20230409 // Add exclude_from_sim markup
#define SEXPR_SCHEMATIC_FILE_VERSION 20230620 // ki_description -> Description Field

View File

@ -3864,7 +3864,12 @@ FOOTPRINT* PCB_PARSER::parseFOOTPRINT_unchecked( wxArrayString* aInitialComments
field->StyleFromSettings( m_board->GetDesignSettings() ); field->StyleFromSettings( m_board->GetDesignSettings() );
} }
field->SetVisible( true ); // Hide the field by default if it is a legacy field that did not have
// text effects applied, since hide is a negative effect
if( m_requiredVersion < 20230620 )
field->SetVisible( false );
else
field->SetVisible( true );
parsePCB_TEXT_effects( field ); parsePCB_TEXT_effects( field );
} }

View File

@ -131,7 +131,7 @@ class PCB_PLUGIN; // forward decl
//#define SEXPR_BOARD_FILE_VERSION 20221018 // Via & pad zone-layer-connections //#define SEXPR_BOARD_FILE_VERSION 20221018 // Via & pad zone-layer-connections
//#define SEXPR_BOARD_FILE_VERSION 20230410 // DNP attribute propagated from schematic to attr //#define SEXPR_BOARD_FILE_VERSION 20230410 // DNP attribute propagated from schematic to attr
//#define SEXPR_BOARD_FILE_VERSION 20230517 // Teardrop parameters for pads and vias //#define SEXPR_BOARD_FILE_VERSION 20230517 // Teardrop parameters for pads and vias
#define SEXPR_BOARD_FILE_VERSION 20230612 // PCB Fields #define SEXPR_BOARD_FILE_VERSION 20230620 // PCB Fields
#define BOARD_FILE_HOST_VERSION 20200825 ///< Earlier files than this include the host tag #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 #define LEGACY_ARC_FORMATTING 20210925 ///< These were the last to use old arc formatting