From 9f4c54d33ab37df826246732f00b0bd2efc9330f Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 1 Dec 2015 22:14:59 -0200 Subject: [PATCH] Draft: small bugfix --- src/Mod/Draft/DraftGeomUtils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Draft/DraftGeomUtils.py b/src/Mod/Draft/DraftGeomUtils.py index fb74b7f2c..9969fe679 100755 --- a/src/Mod/Draft/DraftGeomUtils.py +++ b/src/Mod/Draft/DraftGeomUtils.py @@ -1076,6 +1076,8 @@ def isReallyClosed(wire): def getNormal(shape): "finds the normal of a shape, if possible" n = Vector(0,0,1) + if shape.isNull(): + return n if (shape.ShapeType == "Face") and hasattr(shape,"normalAt"): n = shape.copy().normalAt(0.5,0.5) elif shape.ShapeType == "Edge":