Closed yaqwsx closed 4 years ago
In OpenSCAD, offset can accept zero for r or delta. Unfortunately, SolidPython does not. The problem is in: https://github.com/SolidCode/SolidPython/blob/f79d68c7fbb82f1763ca7de1ec24576fbfc02585/solid/objects.py#L418-L426
r
delta
Instead of if variable: should be if variable is not None.
if variable:
if variable is not None
Use case: When r is a user-supplied argument.
Thanks, that’s a good catch. I’ll push a change later today
In OpenSCAD, offset can accept zero for
r
ordelta
. Unfortunately, SolidPython does not. The problem is in: https://github.com/SolidCode/SolidPython/blob/f79d68c7fbb82f1763ca7de1ec24576fbfc02585/solid/objects.py#L418-L426Instead of
if variable:
should beif variable is not None
.Use case: When
r
is a user-supplied argument.