Part: if boolean/compound object has set transparency then override the values of the input shape

This commit is contained in:
wmayer
2022-07-27 17:03:47 +02:00
parent f1ce218955
commit 62dbfc5290
2 changed files with 24 additions and 0 deletions

View File

@@ -125,6 +125,12 @@ void ViewProviderCompound::updateData(const App::Property* prop)
}
}
// If the view provider has set a transparency then override the values
// of the input shapes
if (Transparency.getValue() > 0) {
applyTransparency(Transparency.getValue(), compCol);
}
this->DiffuseColor.setValues(compCol);
}
else if (prop->getTypeId().isDerivedFrom(App::PropertyLinkList::getClassTypeId())) {