Skip to content

Commit f24f9a0

Browse files
authoredNov 20, 2024
Merge pull request #386 from smkent/openscad
Update OpenSCAD CLI invocation for new `--backend` CLI option
2 parents 721049e + 5946f14 commit f24f9a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎site_scons/main_builder.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@ def _openscad_cmd(self, env: SConsEnvironment) -> Sequence[str]:
5353
"openscad", os.environ.get("OPENSCAD", "openscad")
5454
)
5555

56-
def _openscad_has_features() -> bool:
56+
def _openscad_has_backend_option() -> bool:
5757
help_text = subprocess.run(
5858
[executable, "--help"],
5959
check=True,
6060
capture_output=True,
6161
text=True,
6262
env=env["ENV"],
6363
).stderr
64-
return "--enable" in help_text
64+
return "--backend" in help_text
6565

6666
cmd = [executable]
67-
if _openscad_has_features():
68-
cmd += ["--enable", "fast-csg", "--enable", "manifold"]
67+
if _openscad_has_backend_option():
68+
cmd += ["--backend", "Manifold"]
6969
return cmd
7070

7171
def _add_openscad_builder(self, env: SConsEnvironment) -> None:

0 commit comments

Comments
 (0)