Fem: fixes #8485: transparency of pipeline objects is visually lost

This commit is contained in:
wmayer
2023-02-15 14:21:59 +01:00
committed by Uwe
parent b0e50b8eb2
commit a2928cf0f6

View File

@@ -549,7 +549,8 @@ void ViewProviderFemPostObject::WriteColorData(bool ResetColorBarRange) {
if (Field.getEnumVector().empty() || Field.getValue() == 0) {
m_material->diffuseColor.setValue(SbColor(0.8, 0.8, 0.8));
m_material->transparency.setValue(0.);
float trans = float(Transparency.getValue()) / 100.0;
m_material->transparency.setValue(trans);
m_materialBinding->value = SoMaterialBinding::OVERALL;
m_materialBinding->touch();
// since there is no field, set the range to the default