Fix IfcGeomServer build after c01263d721

This commit is contained in:
Thomas Krijnen
2024-06-10 21:41:52 +02:00
parent 6fb05fa743
commit 783675f78c
+1 -1
View File
@@ -353,7 +353,7 @@ protected:
// We remove the blanks here from the material array. I.e. materials without a diffuse color
std::vector<boost::optional<std::array<float, 4> > > diffuse_color_array;
for (auto it = geom->geometry().materials().begin(); it != geom->geometry().materials().end(); ++it) {
const auto& mat = *it;
const auto& mat = **it;
if (mat.diffuse) {
const auto& color = mat.diffuse.ccomponents();
diffuse_color_array.push_back(std::array<float, 4>{