- Gerber Editor: fixed units conversion for obj.apertures keys that require it

This commit is contained in:
Marius Stanciu
2019-05-15 03:56:31 +03:00
parent c70309e802
commit 78939fdc84
4 changed files with 41 additions and 14 deletions

View File

@@ -1428,6 +1428,7 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
x_formatted, y_formatted = lz_format(coord[0], coord[1], factor)
gerber_code += "X{xform}Y{yform}D01*\n".format(xform=x_formatted,
yform=y_formatted)
# gerber_code += "D02*\n"
if 'clear' in geo_elem:
gerber_code += '%LPC*%\n'
@@ -1461,7 +1462,8 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
else:
x_formatted, y_formatted = lz_format(coord[0], coord[1], factor)
gerber_code += "X{xform}Y{yform}D01*\n".format(xform=x_formatted,
yform=y_formatted)
yform=y_formatted)
# gerber_code += "D02*\n"
gerber_code += '%LPD*%\n'
except Exception as e: