mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Adding --surface-color in conversion settings to force the use of surface color instead of diffuse color. Issue #5075
This commit is contained in:
@@ -97,9 +97,9 @@ int GltfSerializer::writeMaterial(const ifcopenshell::geometry::taxonomy::style:
|
||||
|
||||
std::array<double, 4> base;
|
||||
base.fill(1.0);
|
||||
if (style->diffuse) {
|
||||
if (style->get_color()) {
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
base[i] = style->diffuse.ccomponents()(i);
|
||||
base[i] = style->get_color().ccomponents()(i);
|
||||
}
|
||||
}
|
||||
if (style->transparency == style->transparency) {
|
||||
|
||||
Reference in New Issue
Block a user