Arch: Fixed IFC export of compsolids (#10476)

This commit is contained in:
Yorik van Havre
2023-09-16 17:02:00 +02:00
committed by GitHub
parent ad4f8783e3
commit 3ac314aa71

View File

@@ -2344,7 +2344,10 @@ def getRepresentation(
i = 0
rgbt = []
for sol in obj.Shape.Solids:
rgbt.append(diffusecolor[i])
if i < len(diffusecolor):
rgbt.append(diffusecolor[i])
else:
rgbt.append(diffusecolor[0])
i += len(sol.Faces)
for i,shape in enumerate(colorshapes):
if i < len(rgbt):