- fixed issue in Film Tool where some parameters names in calls of method export_positive() were not matching the actual parameters name

- finished the Extract Drills Tool
- fixed a small issue in the DoubleSided Tool
This commit is contained in:
Marius Stanciu
2020-01-11 00:52:06 +02:00
committed by Marius
parent f2ccb48c98
commit c16ecfe0c3
5 changed files with 103 additions and 53 deletions

View File

@@ -533,16 +533,17 @@ class DblSidedTool(FlatCAMTool):
"Add them and retry."))
return
drills = []
drills = list()
for hole in holes:
point = Point(hole)
point_mirror = affinity.scale(point, xscale, yscale, origin=(px, py))
drills.append({"point": point, "tool": "1"})
drills.append({"point": point_mirror, "tool": "1"})
if 'solid_geometry' not in tools:
tools["1"]['solid_geometry'] = []
if 'solid_geometry' not in tools["1"]:
tools["1"]['solid_geometry'] = list()
else:
tools["1"]['solid_geometry'].append(point)
tools["1"]['solid_geometry'].append(point_mirror)
def obj_init(obj_inst, app_inst):