Do not get transparency from DiffuseColor if not set per face - fixes #2675

This commit is contained in:
Yorik van Havre 2016-08-16 23:45:17 -03:00
parent 20d6c93fd5
commit 3dd3461aec

View File

@ -657,7 +657,7 @@ void ViewProviderPartExt::setHighlightedFaces(const std::vector<App::Color>& col
else if (colors.size() == 1) {
pcShapeBind->value = SoMaterialBinding::OVERALL;
pcShapeMaterial->diffuseColor.setValue(colors[0].r, colors[0].g, colors[0].b);
pcShapeMaterial->transparency = colors[0].a;
//pcShapeMaterial->transparency = colors[0].a; do not get transparency from DiffuseColor in this case
}
}