Import: [skip ci] consistent use of curly braces

This commit is contained in:
wmayer
2021-10-13 14:28:06 +02:00
parent f598873b38
commit 1483cc023f

View File

@@ -325,8 +325,10 @@ private:
if(colors.size() == 1) {
vp->ShapeColor.setValue(colors.front());
vp->Transparency.setValue(100 * colors.front().a);
} else
}
else {
vp->DiffuseColor.setValues(colors);
}
}
virtual void applyEdgeColors(Part::Feature* part, const std::vector<App::Color>& colors) override {
auto vp = dynamic_cast<PartGui::ViewProviderPartExt*>(Gui::Application::Instance->getViewProvider(part));