Arch: Fixed error in roof - Fixes #3864

This commit is contained in:
Yorik van Havre
2019-05-07 22:49:19 -03:00
parent ebca0c9836
commit 1fb7ed43cf
+6 -2
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