mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
remove surface white if doesn't have surface colour
Signed-off-by: Cristian Ritter <cristian_ritter@hotmail.com>
This commit is contained in:
@@ -571,8 +571,6 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcStyledItem* inst) {
|
|||||||
double rgb[3];
|
double rgb[3];
|
||||||
if (process_colour(shading->SurfaceColour(), rgb)) {
|
if (process_colour(shading->SurfaceColour(), rgb)) {
|
||||||
surface_style->surface.components() << rgb[0], rgb[1], rgb[2];
|
surface_style->surface.components() << rgb[0], rgb[1], rgb[2];
|
||||||
} else {
|
|
||||||
surface_style->surface = white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto rendering_style = shading->as<IfcSchema::IfcSurfaceStyleRendering>()) {
|
if (auto rendering_style = shading->as<IfcSchema::IfcSurfaceStyleRendering>()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user