Import: support transparency for STEP import and export

This commit is contained in:
Zheng, Lei
2021-10-07 15:47:01 +08:00
parent c3e3ff3c8b
commit b9a76cc8e4
2 changed files with 22 additions and 18 deletions

View File

@@ -322,9 +322,10 @@ private:
return;
}
// vp->MapFaceColor.setValue(false);
if(colors.size() == 1)
if(colors.size() == 1) {
vp->ShapeColor.setValue(colors.front());
else
vp->Transparency.setValue(100 * colors.front().a);
} else
vp->DiffuseColor.setValues(colors);
}
virtual void applyEdgeColors(Part::Feature* part, const std::vector<App::Color>& colors) override {