Arch: Fixed error in roof - Fixes #3864

This commit is contained in:
Yorik van Havre
2019-05-07 22:47:15 -03:00
parent 9eef1b3e45
commit b03aa051a4

View File

@@ -674,8 +674,12 @@ class _Roof(ArchComponent.Component):
if obj.Base.Shape.Solids:
return obj.Shape
else :
if self.sub:
return self.sub
if hasattr(self,"sub"):
if self.sub:
return self.sub
else :
self.execute(obj)
return self.sub
else :
self.execute(obj)
return self.sub