From 5fe5ea923fa3690957260785de4a53fb972331ae Mon Sep 17 00:00:00 2001 From: Mark Ganson TheMarkster <39143564+mwganson@users.noreply.github.com> Date: Fri, 20 Jul 2018 12:58:39 -0500 Subject: [PATCH] Fix typo 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. --- 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 40fb4ede37..3fabd94556 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -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