Arch: Fixed error in roof - Fixes #3864

This commit is contained in:
Yorik van Havre
2019-05-07 22:47:15 -03:00
parent aca6b0d4f3
commit c24b9fb68a

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