Arch: Fix missing Windows in Arch Reference of BuildingPart

This commit is contained in:
Roy-043
2022-12-02 00:52:10 +01:00
committed by Uwe
parent ac182bf9d9
commit 524bda9547
+2 -2
View File
@@ -457,7 +457,7 @@ class BuildingPart(ArchIFC.IfcProduct):
shapes = []
solidindex = 0
materialstable = {}
for child in Draft.get_group_contents(obj):
for child in Draft.get_group_contents(obj, walls=True):
if not Draft.get_type(child) in ["Space"]:
if hasattr(child,'Shape') and child.Shape:
shapes.append(child.Shape)
@@ -734,7 +734,7 @@ class ViewProviderBuildingPart:
"recursively get the colors of objects inside this BuildingPart"
colors = []
for child in Draft.get_group_contents(obj):
for child in Draft.get_group_contents(obj, walls=True):
if not Draft.get_type(child) in ["Space"]:
if hasattr(child,'Shape') and (hasattr(child.ViewObject,"DiffuseColor") or hasattr(child.ViewObject,"ShapeColor")):
if hasattr(child.ViewObject,"DiffuseColor") and len(child.ViewObject.DiffuseColor) == len(child.Shape.Faces):