diff --git a/src/Mod/CAM/Path/Post/Processor.py b/src/Mod/CAM/Path/Post/Processor.py index a394897006..0668450c8f 100644 --- a/src/Mod/CAM/Path/Post/Processor.py +++ b/src/Mod/CAM/Path/Post/Processor.py @@ -1887,13 +1887,6 @@ class PostProcessor: postables = self._buildPostList(early_tool_prep) Path.Log.debug(f"postables {postables}") - # Process canned cycles for drilling operations - for _, section in enumerate(postables): - _, sublist = section - for obj in sublist: - if hasattr(obj, "Path"): - obj.Path = PostUtils.cannedCycleTerminator(obj.Path) - Path.Log.debug(f"postables count: {len(postables)}") g_code_sections = [] diff --git a/src/Mod/CAM/Path/Post/UtilsParse.py b/src/Mod/CAM/Path/Post/UtilsParse.py index b466c42683..5bfbcfc5c7 100644 --- a/src/Mod/CAM/Path/Post/UtilsParse.py +++ b/src/Mod/CAM/Path/Post/UtilsParse.py @@ -708,8 +708,12 @@ def parse_a_path(values: Values, gcode: Gcode, pathobj) -> None: ) adaptive_op_variables = determine_adaptive_op(values, pathobj) - # Apply arc splitting if requested path_to_process = pathobj.Path + + # Process canned cycles for drilling operations + path_to_process = PostUtils.cannedCycleTerminator(path_to_process) + + # Apply arc splitting if requested if values["SPLIT_ARCS"]: path_to_process = PostUtils.splitArcs(path_to_process)