From 3bb55c41a534a95d01d04e127881b7f26da96dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Mon, 11 Apr 2022 01:15:35 +0200 Subject: [PATCH] Fix creating a named Allen key slot `assign` is deprecated, and this particular use of it appears broken on newer OpenSCAD versions. We usually pass in the dimensions explicitly, therefore don't hit this code path. --- cyl_head_bolt.scad | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cyl_head_bolt.scad b/cyl_head_bolt.scad index d78d19d..37eff3e 100644 --- a/cyl_head_bolt.scad +++ b/cyl_head_bolt.scad @@ -244,9 +244,11 @@ module key_slot( { // ----------------------------------------------- if (name!="none") - assign(df = _get_fam(name), - k = df[_NB_F_KEY], - l = df[_NB_F_KEY_DEPTH]); + { + df = _get_fam(name); + k = df[_NB_F_KEY]; + l = df[_NB_F_KEY_DEPTH]; + } translate([0,0,-(l+cll)/2]) hexaprism(ri=(k+clk)/2, h=(l+cll)); }