Draft: small bugfix
This commit is contained in:
parent
2b2358e70b
commit
9f4c54d33a
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue
Block a user