- fixed an error in Drilling Plugin when selecting only a few tools and not all for drilling

- fixed an error when building the UI for a CNCJob object created from drilling an Excellon object with a limited selection of tools
This commit is contained in:
Marius Stanciu
2022-01-28 04:03:19 +02:00
committed by Marius
parent 2ebc231f6f
commit c470023719
4 changed files with 16 additions and 8 deletions

View File

@@ -2139,8 +2139,10 @@ class ToolDrilling(AppTool, Excellon):
# first drill point
# I can read the toolchange x,y point from any tool since it is the same for all, so I read it
# from the first tool
job_obj.xy_toolchange = job_obj.tools[1]['data']["tools_drill_toolchangexy"]
# from the first tool that is available
first_tool_available = sel_tools[0]
job_obj.xy_toolchange = job_obj.tools[first_tool_available]['data']["tools_drill_toolchangexy"]
x_tc, y_tc = [0, 0]
try: