Preserve filename in output
This commit is contained in:
parent
d3150854ac
commit
0a99893f77
1 changed files with 2 additions and 1 deletions
|
|
@ -126,7 +126,8 @@ export const render =
|
|||
const content = [...prefixLines, source.content].join('\n');
|
||||
|
||||
const actualRenderFormat = renderFormat == 'glb' || renderFormat == '3mf' ? 'off' : renderFormat;
|
||||
const outFile = 'out.' + actualRenderFormat;
|
||||
const stem = scadPath.replace(/\.scad$/, '').split('/').pop();
|
||||
const outFile = `${stem}.${actualRenderFormat}`;
|
||||
const args = [
|
||||
scadPath,
|
||||
"-o", outFile,
|
||||
|
|
|
|||
Loading…
Reference in a new issue