Altium PCB import: Models is optional.

Models directory may not exist in older files.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16512
This commit is contained in:
Alex Shvartzkop 2024-01-14 11:59:49 +03:00
parent 5bc78f7d9f
commit 42d8c85f12
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ void ALTIUM_PCB::Parse( const ALTIUM_COMPOUND_FILE& altiumPcbFi
{ {
this->ParseComponents6Data( aFile, fileHeader ); this->ParseComponents6Data( aFile, fileHeader );
} }, } },
{ true, ALTIUM_PCB_DIR::MODELS, { false, ALTIUM_PCB_DIR::MODELS,
[this, aFileMapping]( const ALTIUM_COMPOUND_FILE& aFile, auto fileHeader ) [this, aFileMapping]( const ALTIUM_COMPOUND_FILE& aFile, auto fileHeader )
{ {
std::vector<std::string> dir{ aFileMapping.at( ALTIUM_PCB_DIR::MODELS ) }; std::vector<std::string> dir{ aFileMapping.at( ALTIUM_PCB_DIR::MODELS ) };