Enable bb and/or uvias when encountering them on Altium import.

Fixes https://gitlab.com/kicad/code/kicad/issues/10044

(cherry picked from commit 1d66925f5f)
This commit is contained in:
Jeff Young 2022-03-22 22:33:18 +00:00
parent 0fc4ccf8d9
commit c9829cf9a8
1 changed files with 2 additions and 0 deletions

View File

@ -2486,10 +2486,12 @@ void ALTIUM_PCB::ParseVias6Data( const CFB::CompoundFileReader& aReader,
else if( ( !start_layer_outside ) && ( !end_layer_outside ) ) else if( ( !start_layer_outside ) && ( !end_layer_outside ) )
{ {
via->SetViaType( VIATYPE::BLIND_BURIED ); via->SetViaType( VIATYPE::BLIND_BURIED );
m_board->GetDesignSettings().m_BlindBuriedViaAllowed = true;
} }
else else
{ {
via->SetViaType( VIATYPE::MICROVIA ); // TODO: always a microvia? via->SetViaType( VIATYPE::MICROVIA ); // TODO: always a microvia?
m_board->GetDesignSettings().m_MicroViasAllowed = true;
} }
PCB_LAYER_ID start_klayer = GetKicadLayer( elem.layer_start ); PCB_LAYER_ID start_klayer = GetKicadLayer( elem.layer_start );