Skip to content

Commit

Permalink
Preserve filename in output
Browse files Browse the repository at this point in the history
  • Loading branch information
ochafik committed Dec 25, 2024
1 parent d315085 commit 0a99893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runner/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0a99893

Please sign in to comment.