STEP export: Remove autosave prefix from label names.

The autosave file is used if the board was modified.
This commit is contained in:
Alex Shvartzkop 2024-04-22 04:05:46 +03:00
parent 2babd574be
commit bbab5a979a
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,7 @@
#include <filename_resolver.h>
#include <trace_helpers.h>
#include <project_pcb.h>
#include <wildcards_and_files_ext.h>
#include <Message.hxx> // OpenCascade messenger
#include <Message_PrinterOStream.hxx> // OpenCascade output messenger
@ -153,6 +154,9 @@ EXPORTER_STEP::EXPORTER_STEP( BOARD* aBoard, const EXPORTER_STEP_PARAMS& aParams
wxFileName fn( aBoard->GetFileName() );
m_pcbBaseName = fn.GetName();
// Remove the autosave prefix
m_pcbBaseName.StartsWith( FILEEXT::AutoSaveFilePrefix, &m_pcbBaseName );
m_resolver = std::make_unique<FILENAME_RESOLVER>();
m_resolver->Set3DConfigDir( wxT( "" ) );
// needed to add the project to the search stack