From 6e1784ddba67825b41976b352692666bbcc24a10 Mon Sep 17 00:00:00 2001 From: jim Date: Mon, 20 Sep 2021 21:10:49 -0700 Subject: [PATCH] PathArry translate copies along Z axis as it does along X/Y --- src/Mod/Path/PathScripts/PathArray.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathArray.py b/src/Mod/Path/PathScripts/PathArray.py index 999d4e2528..d8bc7093c6 100644 --- a/src/Mod/Path/PathScripts/PathArray.py +++ b/src/Mod/Path/PathScripts/PathArray.py @@ -263,7 +263,7 @@ class PathArray: if self.arrayType == 'Linear1D': for i in range(self.copies): - pos = FreeCAD.Vector(self.offsetVector.x * (i + 1), self.offsetVector.y * (i + 1), 0) + pos = FreeCAD.Vector(self.offsetVector.x * (i + 1), self.offsetVector.y * (i + 1), self.offsetVector.z * (i + 1)) pos = self._calculateJitter(pos) for b in base: @@ -278,9 +278,9 @@ class PathArray: for i in range(self.copiesY + 1): for j in range(self.copiesX + 1): if (i % 2) == 0: - pos = FreeCAD.Vector(self.offsetVector.x * j, self.offsetVector.y * i, 0) + pos = FreeCAD.Vector(self.offsetVector.x * j, self.offsetVector.y * i, self.offsetVector.z * i) else: - pos = FreeCAD.Vector(self.offsetVector.x * (self.copiesX - j), self.offsetVector.y * i, 0) + pos = FreeCAD.Vector(self.offsetVector.x * (self.copiesX - j), self.offsetVector.y * i, self.offsetVector.z * i) pos = self._calculateJitter(pos) for b in base: @@ -294,9 +294,9 @@ class PathArray: for i in range(self.copiesX + 1): for j in range(self.copiesY + 1): if (i % 2) == 0: - pos = FreeCAD.Vector(self.offsetVector.x * i, self.offsetVector.y * j, 0) + pos = FreeCAD.Vector(self.offsetVector.x * i, self.offsetVector.y * j, self.offsetVector.z * i) else: - pos = FreeCAD.Vector(self.offsetVector.x * i, self.offsetVector.y * (self.copiesY - j), 0) + pos = FreeCAD.Vector(self.offsetVector.x * i, self.offsetVector.y * (self.copiesY - j), self.offsetVector.z * i) pos = self._calculateJitter(pos) for b in base: