What version of OpenSCAD are you on?
current dev commit as of 7/24/2024 (19f0d2f, I believe)
Describe the bug
I'm not really sure whether this is a bug, or just a documentation-deficiency.
To Reproduce
-
check out the latest version of the repo (19f0d2f, as of today)
-
edit keys.scad:
// for low-profile Gateron KS-33, which are similar to low-profile Cherry MX
$stem_type = "rounded_cherry";
$stem_inset = -1;
dcs_row(3, 0) legend("x", size=9) key();
-
Hit f5.
-
note that the changes to stem_type and stem_inset made in keys.scad are completely ignored.
-
switch to v2.3.0, make the same changes to keys.scad, hit f5, notice that it now works.
-
switch back to 19f0d2f, change both values directly in src/settings.scad, and notice that they work.
So... it looks pretty clear that something that changed between v2.3.0 and the latest dev commit is now causing src/settings.scad to override assignments made elsewhere, instead of merely serving as default values if they aren't set elsewhere.