From ed9386b69281a200342ebec6921161db61a71b6d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 31 Dec 2025 02:39:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/Mod/CAM/Path/Op/Surface.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Mod/CAM/Path/Op/Surface.py b/src/Mod/CAM/Path/Op/Surface.py index ae4750a044..603309cd5e 100644 --- a/src/Mod/CAM/Path/Op/Surface.py +++ b/src/Mod/CAM/Path/Op/Surface.py @@ -2195,7 +2195,9 @@ class ObjectSurface(PathOp.ObjectOp): rSTG = self._rotationalScanToGcode(obj, rng, rNum, prevDepth, layDep, advances) commands.extend(rSTG) if arc != 360.0: - commands.append(Path.Command("G0", {"Z": self.clearHeight, "F": self.vertRapid})) + commands.append( + Path.Command("G0", {"Z": self.clearHeight, "F": self.vertRapid}) + ) rNum += 1 # Eol @@ -2315,13 +2317,13 @@ class ObjectSurface(PathOp.ObjectOp): # Always retract to full clearHeight before any A/B axis rotation output.append(Path.Command("G0", {"Z": self.clearHeight, "F": self.vertRapid})) - + # Rotate to correct index location if obj.RotationAxis == "X": output.append(Path.Command("G0", {"A": idxAng, "F": self.axialFeed})) else: output.append(Path.Command("G0", {"B": idxAng, "F": self.axialFeed})) - + output.append(Path.Command("G0", {"X": pnt.x, "Y": pnt.y, "F": self.horizRapid})) output.append(Path.Command("G1", {"Z": pnt.z, "F": self.vertFeed}))