Fix compiler warning.

This commit is contained in:
Jeff Young 2025-04-25 22:41:59 +01:00
parent aa5863cb40
commit 2fd2fe6e2d

View File

@ -1029,6 +1029,7 @@ void EXPORTER_PCB_VRML::ExportVrmlFootprint( FOOTPRINT* aFootprint, std::ostream
if( !m_includeDNP && aFootprint->IsDNP() )
return;
std::vector<const EMBEDDED_FILES*> embeddedFilesStack;
bool isFlipped = aFootprint->GetLayer() == B_Cu;
// Export the object VRML model(s)
@ -1044,7 +1045,7 @@ void EXPORTER_PCB_VRML::ExportVrmlFootprint( FOOTPRINT* aFootprint, std::ostream
continue;
}
std::vector<const EMBEDDED_FILES*> embeddedFilesStack;
embeddedFilesStack.clear();
embeddedFilesStack.push_back( aFootprint->GetEmbeddedFiles() );
embeddedFilesStack.push_back( m_board->GetEmbeddedFiles() );
@ -1113,7 +1114,7 @@ void EXPORTER_PCB_VRML::ExportVrmlFootprint( FOOTPRINT* aFootprint, std::ostream
int old_precision = aOutputFile->precision();
aOutputFile->precision( m_precision );
std::vector<const EMBEDDED_FILES*> embeddedFilesStack;
embeddedFilesStack.clear();
embeddedFilesStack.push_back( aFootprint->GetEmbeddedFiles() );
embeddedFilesStack.push_back( m_board->GetEmbeddedFiles() );