Add missing text var override to cli gerbers

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17283
This commit is contained in:
Mark Roszko 2024-03-11 12:33:52 +00:00
parent 9281561938
commit d904535a15
1 changed files with 1 additions and 0 deletions

View File

@ -569,6 +569,7 @@ int PCBNEW_JOBS_HANDLER::JobExportGerbers( JOB* aJob )
BOARD* brd = LoadBoard( aGerberJob->m_filename, true ); BOARD* brd = LoadBoard( aGerberJob->m_filename, true );
loadOverrideDrawingSheet( brd, aGerberJob->m_drawingSheet ); loadOverrideDrawingSheet( brd, aGerberJob->m_drawingSheet );
brd->GetProject()->ApplyTextVars( aJob->GetVarOverrides() );
PCB_PLOT_PARAMS boardPlotOptions = brd->GetPlotOptions(); PCB_PLOT_PARAMS boardPlotOptions = brd->GetPlotOptions();
LSET plotOnAllLayersSelection = boardPlotOptions.GetPlotOnAllLayersSelection(); LSET plotOnAllLayersSelection = boardPlotOptions.GetPlotOnAllLayersSelection();