- 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

@@ -90,8 +90,8 @@ class Excellon(Geometry):
self.match_routing_stop = None
# ## IN|MM -> Units are inherited from Geometry
self.units = self.app.defaults['units']
self.units_found = self.app.defaults['units']
self.units = self.app.app_units
self.units_found = self.app.app_units
# Trailing "T" or leading "L" (default)
# self.zeros = "T"

View File

@@ -1948,7 +1948,7 @@ class Gerber(Geometry):
# w = float(svg_root.get('width'))
h = svgparselength(svg_root.get('height'))[0] # TODO: No units support yet
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['gerber_circle_steps']
factor = svgparse_viewbox(svg_root)
geos = getsvggeo(svg_root, 'gerber', units=units, res=res, factor=factor, app=self.app)