From 458eda2febb48798fdc1f057a70617c1fc9cbe6b Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 23 Dec 2019 17:18:16 -0300 Subject: [PATCH] Arch: Fixed minor colorbug in IFC export --- src/Mod/Arch/exportIFC.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/exportIFC.py b/src/Mod/Arch/exportIFC.py index 69ce88e7fb..7fc74d517d 100644 --- a/src/Mod/Arch/exportIFC.py +++ b/src/Mod/Arch/exportIFC.py @@ -2071,7 +2071,10 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess rgbt.append(diffusecolor[i]) i += len(sol.Faces) for i,shape in enumerate(colorshapes): - key = rgbt[i] + if i < len(rgbt): + key = rgbt[i] + else: + key = rgbt[0] #if hasattr(obj,"Material"): # if obj.Material: # key = obj.Material.Name #TODO handle multimaterials