Arch: Fixed export of windows colors to IFC

This commit is contained in:
Yorik van Havre
2019-05-02 16:02:19 -03:00
parent 0493d23d8d
commit 107fa5ae28

View File

@@ -3002,9 +3002,9 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess
i += len(sol.Faces)
for i,shape in enumerate(shapes):
key = rgbt[i]
if hasattr(obj,"Material"):
if obj.Material:
key = obj.Material.Name #TODO handle multimaterials
#if hasattr(obj,"Material"):
# if obj.Material:
# key = obj.Material.Name #TODO handle multimaterials
if key in surfstyles:
psa = surfstyles[key]
else: