From 53c95db28fae95c62c645ad0233cc4c2b0fd46cd Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 6 Jan 2015 14:13:24 +0000 Subject: [PATCH] Fix for IfcSpecularExponent --- src/ifcgeom/IfcGeomRenderStyles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomRenderStyles.cpp b/src/ifcgeom/IfcGeomRenderStyles.cpp index cf48f5b153..2ebb325fa3 100644 --- a/src/ifcgeom/IfcGeomRenderStyles.cpp +++ b/src/ifcgeom/IfcGeomRenderStyles.cpp @@ -101,7 +101,7 @@ const IfcGeom::SurfaceStyle* IfcGeom::get_style(Ifc2x3::IfcRepresentationItem* i if (roughness >= 1e-9) { surface_style.Specularity().reset(1.0 / roughness); } - } else if (highlight->is(Ifc2x3::Type::IfcSpecularRoughness)) { + } else if (highlight->is(Ifc2x3::Type::IfcSpecularExponent)) { surface_style.Specularity().reset(*highlight->wrappedValue()); } }