replacing diffuse to get_color method

This commit is contained in:
Cristian Ritter
2024-08-20 11:44:20 -03:00
parent cd3df94a4b
commit d714eca4ee
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ void WaveFrontOBJSerializer::writeMaterial(const ifcopenshell::geometry::taxonom
mtl_stream.stream << "newmtl " << material_name << "\n";
{
auto& diffuse = style.diffuse.ccomponents();
auto& diffuse = style.get_color().ccomponents();
mtl_stream.stream << "Kd " << diffuse(0) << " " << diffuse(1) << " " << diffuse(2) << "\n";
}
if (style.specular) {