From 15bef3283fe73a99d401edd1edf09ea27234329f Mon Sep 17 00:00:00 2001 From: M G Berberich Date: Tue, 28 Jan 2020 20:41:32 +0100 Subject: [PATCH] [Draft]fix circular array python2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There was semantic change of the division operator ‘/’ from python2 to python3. This fix makes the circular array work with python2 correctly. See PEP 238 --- src/Mod/Draft/Draft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index fd5f401b40..97b460271a 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -5349,7 +5349,7 @@ class _Array(_DraftLink): n = math.floor(c/tdist) n = int(math.floor(n/sym)*sym) if n == 0: continue - angle = 360/n + angle = 360.0/n for ycount in range(0, n): npl = pl.copy() trans = FreeCAD.Vector(direction).multiply(rc)