From f5f4fd5e0780fc477b4fc715bce8bc6a2fe0f0e7 Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Fri, 16 Aug 2019 23:27:45 -0500 Subject: [PATCH] Draft: _PointArray, removed the tabs, and replaced with four spaces; mixing spaces and tabs may cause a syntax error in Python 3 --- src/Mod/Draft/Draft.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index cfa5ace232..563c9195fb 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -6000,14 +6000,14 @@ class _PointArray(_DraftObject): for pts in pls: #print pts # inspect the objects if hasattr(pts, 'X') and hasattr(pts, 'Y') and hasattr(pts, 'Z'): - nshape = obj.Base.Shape.copy() - if hasattr(pts, 'Placement'): - place = pts.Placement - nshape.translate(place.Base) - nshape.rotate(place.Base, place.Rotation.Axis, place.Rotation.Angle * 180 / math.pi ) - nshape.translate(Base.Vector(pts.X,pts.Y,pts.Z)) - i += 1 - base.append(nshape) + nshape = obj.Base.Shape.copy() + if hasattr(pts, 'Placement'): + place = pts.Placement + nshape.translate(place.Base) + nshape.rotate(place.Base, place.Rotation.Axis, place.Rotation.Angle * 180 / math.pi ) + nshape.translate(Base.Vector(pts.X,pts.Y,pts.Z)) + i += 1 + base.append(nshape) obj.Count = i if i > 0: obj.Shape = Part.makeCompound(base)