mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Fix IfcGeomServer build after c01263d721
This commit is contained in:
@@ -353,7 +353,7 @@ protected:
|
|||||||
// We remove the blanks here from the material array. I.e. materials without a diffuse color
|
// 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;
|
std::vector<boost::optional<std::array<float, 4> > > diffuse_color_array;
|
||||||
for (auto it = geom->geometry().materials().begin(); it != geom->geometry().materials().end(); ++it) {
|
for (auto it = geom->geometry().materials().begin(); it != geom->geometry().materials().end(); ++it) {
|
||||||
const auto& mat = *it;
|
const auto& mat = **it;
|
||||||
if (mat.diffuse) {
|
if (mat.diffuse) {
|
||||||
const auto& color = mat.diffuse.ccomponents();
|
const auto& color = mat.diffuse.ccomponents();
|
||||||
diffuse_color_array.push_back(std::array<float, 4>{
|
diffuse_color_array.push_back(std::array<float, 4>{
|
||||||
|
|||||||
Reference in New Issue
Block a user