Fix for IfcSpecularExponent

This commit is contained in:
Thomas Krijnen
2015-01-06 14:13:24 +00:00
parent d1c91d3c47
commit 53c95db28f
+1 -1
View File
@@ -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());
}
}