mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 21:38:51 +00:00
Fix SurfaceColour typo that broke loading colours in some IFCs
This commit is contained in:
@@ -110,7 +110,7 @@ class Loader(blenderbim.core.tool.Loader):
|
|||||||
"IfcNormalisedRatioMeasure"
|
"IfcNormalisedRatioMeasure"
|
||||||
):
|
):
|
||||||
diffuse_color_value = surface_style["DiffuseColour"].wrappedValue
|
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)
|
surface_style["DiffuseColour"] = ("IfcNormalisedRatioMeasure", diffuse_color)
|
||||||
else:
|
else:
|
||||||
surface_style["DiffuseColour"] = None
|
surface_style["DiffuseColour"] = None
|
||||||
|
|||||||
Reference in New Issue
Block a user