Respect the model show setting for vrml and idf export

Fix #9166
This commit is contained in:
Marek Roszko 2021-09-19 08:07:36 -04:00
parent 0400c0a775
commit 403826b97c
2 changed files with 12 additions and 0 deletions

View File

@ -420,6 +420,12 @@ static void idf_export_footprint( BOARD* aPcb, FOOTPRINT* aFootprint, IDF3_BOARD
while( sM != eM )
{
if( !sM->m_Show )
{
++sM;
continue;
}
idfFile.Assign( resolver->ResolvePath( sM->m_Filename ) );
idfExt = idfFile.GetExt();

View File

@ -796,6 +796,12 @@ void EXPORTER_PCB_VRML::ExportVrmlFootprint( FOOTPRINT* aFootprint, std::ostream
while( sM != eM )
{
if( !sM->m_Show )
{
++sM;
continue;
}
SGNODE* mod3d = (SGNODE*) m_Cache3Dmodels->Load( sM->m_Filename );
if( nullptr == mod3d )