Skip to content

Commit fea0d93

Browse files
committed
Fix SurfaceColour typo that broke loading colours in some IFCs
1 parent e433471 commit fea0d93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/blenderbim/blenderbim/tool/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def surface_style_to_dict(cls, surface_style):
110110
"IfcNormalisedRatioMeasure"
111111
):
112112
diffuse_color_value = surface_style["DiffuseColour"].wrappedValue
113-
diffuse_color = [v * diffuse_color_value for v in surface_style["SurfaceColor"][:3]] + [1]
113+
diffuse_color = [v * diffuse_color_value for v in surface_style["SurfaceColour"][:3]] + [1]
114114
surface_style["DiffuseColour"] = ("IfcNormalisedRatioMeasure", diffuse_color)
115115
else:
116116
surface_style["DiffuseColour"] = None

0 commit comments

Comments
 (0)