mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
replacing diffuse to get_color method
This commit is contained in:
@@ -354,8 +354,8 @@ protected:
|
||||
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;
|
||||
if (mat.diffuse) {
|
||||
const auto& color = mat.diffuse.ccomponents();
|
||||
if (mat.get_color()) {
|
||||
const auto& color = mat.get_color().ccomponents();
|
||||
diffuse_color_array.push_back(std::array<float, 4>{
|
||||
static_cast<float>(color(0)),
|
||||
static_cast<float>(color(1)),
|
||||
|
||||
Reference in New Issue
Block a user