Remove render-modifiers feature reference
This commit is contained in:
parent
ae21d92928
commit
657ccb9181
1 changed files with 2 additions and 5 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue