From 0439d9047da2b9e6e09e7fdaa88aafd80d8a77f8 Mon Sep 17 00:00:00 2001 From: ochafik Date: Wed, 25 Dec 2024 11:28:15 +0000 Subject: [PATCH] Remove render-modifiers feature reference --- src/runner/actions.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/runner/actions.ts b/src/runner/actions.ts index 5b58a7a..7e892f3 100644 --- a/src/runner/actions.ts +++ b/src/runner/actions.ts @@ -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');