mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
Fix #140
This commit is contained in:
@@ -65,9 +65,7 @@ void WaveFrontOBJSerializer::writeMaterial(const IfcGeom::Material& style)
|
|||||||
if (style.hasTransparency()) {
|
if (style.hasTransparency()) {
|
||||||
const double transparency = 1.0 - style.transparency();
|
const double transparency = 1.0 - style.transparency();
|
||||||
if (transparency < 1) {
|
if (transparency < 1) {
|
||||||
mtl_stream << "Tr " << transparency << "\n";
|
|
||||||
mtl_stream << "d " << transparency << "\n";
|
mtl_stream << "d " << transparency << "\n";
|
||||||
mtl_stream << "D " << transparency << "\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user