Import: Fix of alpha channel misinterpretation

This commit is contained in:
wmayer
2024-11-30 14:01:07 +01:00
committed by Chris Hennes
parent 9bb6c83517
commit e51eef2195
6 changed files with 21 additions and 25 deletions

View File

@@ -51,7 +51,7 @@ void ImportOCAFGui::applyFaceColors(Part::Feature* part, const std::vector<App::
if (colors.size() == 1) {
vp->ShapeAppearance.setDiffuseColor(colors.front());
vp->Transparency.setValue(100 * colors.front().a);
vp->Transparency.setValue(100 * colors.front().transparency());
}
else {
vp->ShapeAppearance.setDiffuseColors(colors);