Fix SurfaceColour typo that broke loading colours in some IFCs

This commit is contained in:
Dion Moult
2023-08-08 23:47:57 +10:00
parent 73b93e7020
commit 3cabe935cd
+1 -1
View File
@@ -110,7 +110,7 @@ class Loader(blenderbim.core.tool.Loader):
"IfcNormalisedRatioMeasure"
):
diffuse_color_value = surface_style["DiffuseColour"].wrappedValue
diffuse_color = [v * diffuse_color_value for v in surface_style["SurfaceColor"][:3]] + [1]
diffuse_color = [v * diffuse_color_value for v in surface_style["SurfaceColour"][:3]] + [1]
surface_style["DiffuseColour"] = ("IfcNormalisedRatioMeasure", diffuse_color)
else:
surface_style["DiffuseColour"] = None