Do not get transparency from DiffuseColor if not set per face - fixes #2675
This commit is contained in:
parent
20d6c93fd5
commit
3dd3461aec
|
@ -657,7 +657,7 @@ void ViewProviderPartExt::setHighlightedFaces(const std::vector<App::Color>& col
|
||||||
else if (colors.size() == 1) {
|
else if (colors.size() == 1) {
|
||||||
pcShapeBind->value = SoMaterialBinding::OVERALL;
|
pcShapeBind->value = SoMaterialBinding::OVERALL;
|
||||||
pcShapeMaterial->diffuseColor.setValue(colors[0].r, colors[0].g, colors[0].b);
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user