diff --git a/CHANGELOG.md b/CHANGELOG.md index d71dbab7..9c5c25ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ CHANGELOG for FlatCAM beta - fixed an issue with the moving shape when creating an exclusion area - added ability to copy the coordinates of the exclusion area with the context menu actions in the Exclusion areas table found in the Milling/Drilling plugins - in Tcl command `add_polygon` added ability to use `-p_coords` optional parameter where the value of this argument should be a list of tuple coordinates +- minor fixes in the Milling Plugin 13.02.2022 diff --git a/appPlugins/ToolMilling.py b/appPlugins/ToolMilling.py index da207572..cf1475f0 100644 --- a/appPlugins/ToolMilling.py +++ b/appPlugins/ToolMilling.py @@ -853,9 +853,11 @@ class ToolMilling(AppTool, Excellon): new_uid = 1 for current_uid in current_uid_list: - new_tools[new_uid] = deepcopy(self.iso_tools[current_uid]) + new_tools[new_uid] = deepcopy(self.target_obj.tools[current_uid]) new_uid += 1 + self.target_obj.tools = new_tools + # the tools table changed therefore we need to rebuild it QtCore.QTimer.singleShot(20, self.build_ui) diff --git a/camlib.py b/camlib.py index d776baad..5512a408 100644 --- a/camlib.py +++ b/camlib.py @@ -3607,7 +3607,7 @@ class CNCjob(Geometry): return t_gcode, (locx, locy), start_gcode - # used in Geometry (and soon in Tool Milling) + # used in Geometry (and in Tool Milling) def geometry_tool_gcode_gen(self, tool, tools, first_pt, last_pt, tolerance, is_first=False, is_last=False, toolchange=False, use_ui=True): """