Skip to content

Commit

Permalink
Do not get transparency from DiffuseColor if not set per face - fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Aug 17, 2016
1 parent 20d6c93 commit 3dd3461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Part/Gui/ViewProviderExt.cpp
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 3dd3461

Please sign in to comment.