Skip to content

Commit

Permalink
Arch: Fix missing Windows in Arch Reference of BuildingPart
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy-043 authored and donovaly committed Dec 1, 2022
1 parent a4693a2 commit adfdbf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Arch/ArchBuildingPart.py
Expand Up @@ -455,7 +455,7 @@ def getShapes(self,obj):
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)
Expand Down Expand Up @@ -732,7 +732,7 @@ def getColors(self,obj):
"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):
Expand Down

0 comments on commit adfdbf7

Please sign in to comment.