Draft: small bugfix

This commit is contained in:
Yorik van Havre 2015-12-01 22:14:59 -02:00
parent 2b2358e70b
commit 9f4c54d33a

View File

@ -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":