Skip to content

Commit

Permalink
Remove render-modifiers feature reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ochafik committed Dec 25, 2024
1 parent 3f1d352 commit 0439d90
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/runner/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,16 @@ export const render =
isPreview,
mountArchives,
vars,
features: additionalFeatures,
features,
extraArgs,
renderFormat,
streamsCallback,
} = renderArgs;

const prefixLines: string[] = [];
let features: string[]
if (isPreview) {
// TODO: add render-modifiers feature to OpenSCAD.
prefixLines.push('$preview=true;');
features = ['render-modifiers', ...(additionalFeatures ?? [])];
} else {
features = (additionalFeatures ?? []).filter(f => f != 'render-modifiers');
}
if (!scadPath.endsWith('.scad')) throw new Error('First source must be a .scad file, got ' + sources[0].path + ' instead');

Expand Down

0 comments on commit 0439d90

Please sign in to comment.