From 51a23bd770a6b1584de641eff4b95f75b6889fc2 Mon Sep 17 00:00:00 2001 From: ageeye <5332429+ageeye@users.noreply.github.com> Date: Tue, 24 Dec 2019 08:14:46 +0100 Subject: [PATCH] Use DraftVecUtils.tup only two times. --- src/Mod/Draft/Draft.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index b1f3e7deae..6abadfcea2 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -5915,10 +5915,12 @@ class _Array(_DraftLink): if num == 0: return base fraction = float(angle)/(num-1) + ctr = DraftVecUtils.tup(center) + axs = DraftVecUtils.tup(axis) for i in range(num-1): currangle = fraction + (i*fraction) npl = pl.copy() - npl.rotate(DraftVecUtils.tup(center), DraftVecUtils.tup(axis), currangle) + npl.rotate(ctr, axs, currangle) npl = npl.multiply(spin) if axisvector: if not DraftVecUtils.isNull(axisvector):