I figure this should be Z instead of Y, but even if I'm wrong there's no reason to check for hasattr(pts,'Y') twice.
This commit is contained in:
Mark Ganson TheMarkster
2018-07-20 12:58:39 -05:00
committed by Yorik van Havre
parent 77f389685e
commit 5fe5ea923f

View File

@@ -6137,7 +6137,7 @@ class _PointArray(_DraftObject):
if hasattr(obj.Base, 'Shape'):
for pts in pls:
#print pts # inspect the objects
if hasattr(pts, 'X') and hasattr(pts, 'Y') and hasattr(pts, 'Y'):
if hasattr(pts, 'X') and hasattr(pts, 'Y') and hasattr(pts, 'Z'):
nshape = obj.Base.Shape.copy()
if hasattr(pts, 'Placement'):
place = pts.Placement