- aperture keys in the gerber 'tools' dictionary are now stored as integers instead of strings as before; need to check the application especially the Gerber Editor

- fixed issues in Gerber Editor (using the '0' insteadd of 'REG' type for apertures)
This commit is contained in:
Marius Stanciu
2021-03-04 17:45:47 +02:00
parent cda5f830be
commit 0986ef143c
19 changed files with 217 additions and 205 deletions

View File

@@ -237,7 +237,7 @@ class ToolPDF(AppTool):
points = {}
def obj_init(new_obj, app_obj):
clear_geo = [geo_el['clear'] for geo_el in ap_dict['0']['geometry']]
clear_geo = [geo_el['clear'] for geo_el in ap_dict[0]['geometry']]
new_obj.tools = {}
@@ -318,10 +318,10 @@ class ToolPDF(AppTool):
follow_buf.append(geo_el['follow'])
poly_buff = unary_union(poly_buff)
if '0' in grb_obj.tools:
if 0 in grb_obj.tools:
global_clear_geo = []
if 'geometry' in grb_obj.tools['0']:
for geo_el in ap_dict['0']['geometry']:
if 'geometry' in grb_obj.tools[0]:
for geo_el in ap_dict[0]['geometry']:
if 'clear' in geo_el:
global_clear_geo.append(geo_el['clear'])