- working to differentiate between temporary units change and permanent units change
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user