- working to differentiate between temporary units change and permanent units change

This commit is contained in:
Marius Stanciu
2021-09-27 17:28:54 +03:00
committed by Marius
parent 89426e8ac3
commit 3fc0ab826f
50 changed files with 185 additions and 186 deletions

View File

@@ -517,7 +517,7 @@ class Geometry(object):
def __init__(self, geo_steps_per_circle=None):
# Units (in or mm)
self.units = self.app.defaults["units"]
self.units = self.app.app_units
self.decimals = self.app.decimals
self.drawing_tolerance = 0.0
@@ -1179,7 +1179,7 @@ class Geometry(object):
self.app.inform.emit("[ERROR_NOTCL] %s" % _("Failed."))
return
units = self.app.defaults['units'] if units is None else units
units = self.app.app_units if units is None else units
res = self.app.defaults['geometry_circle_steps']
factor = svgparse_viewbox(svg_root)
@@ -7719,7 +7719,7 @@ class CNCjob(Geometry):
temp_gcode = ''
header_start = False
header_stop = False
units = self.app.defaults['units'].upper()
units = self.app.app_units.upper()
lines = StringIO(g)
for line in lines: