Arch: Fixed crash in wall with height=0

This commit is contained in:
Yorik van Havre
2017-07-25 15:07:11 -03:00
parent 82fd10b4c7
commit 5d8ecd4b20

View File

@@ -573,6 +573,8 @@ class _Wall(ArchComponent.Component):
if Draft.getType(p) == "Floor":
if p.Height.Value:
height = p.Height.Value
if not height:
return None
if obj.Normal == Vector(0,0,0):
normal = Vector(0,0,1)
else: