1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-09-03 04:12:35 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Chris Palmer
dc3905b284 Removed redundant longer = true with nyloc = true. 2021-01-18 10:33:17 +00:00
Chris Palmer
7f9122ae66 Added --hardwarnings to openscad.py 2021-01-15 18:13:20 +00:00
3 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ function cam_screw_length(cam) = let(
front = cam_front_size(cam),
screw = pcb_screw(camera_pcb(cam)),
nut = screw_nut(screw)
) screw_length(screw, front.z - nut_trap_depth(nut), 1, nyloc = true, longer = true);
) screw_length(screw, front.z - nut_trap_depth(nut), 1, nyloc = true);
function hinge_z(cam) = cam_screw_length(cam) - hinge_r;

View File

@@ -249,7 +249,7 @@ def boms(target = None, assembly = None):
#
# Run openscad
#
openscad.run("-D", "$bom=2", "-D", "$preview=true", "--hardwarnings", "-o", "openscad.echo", "-d", bom_dir + "/bom.deps", bom_maker_name)
openscad.run("-D", "$bom=2", "-D", "$preview=true", "-o", "openscad.echo", "-d", bom_dir + "/bom.deps", bom_maker_name)
os.remove(bom_maker_name)
print("Generating bom ...", end=" ")

View File

@@ -25,7 +25,7 @@ from __future__ import print_function
import subprocess, sys
def run_list(args, silent = False, verbose = False):
cmd = ["openscad"] + args
cmd = ["openscad", "--hardwarnings"] + args
if not silent:
for arg in cmd:
print(arg, end=" ")