Part: minor change on transparency setting

This commit is contained in:
Zheng, Lei
2021-10-11 06:02:54 +08:00
parent 498b40800e
commit 45d0660727

View File

@@ -454,7 +454,7 @@ void ViewProviderPartExt::onChanged(const App::Property* prop)
float trans = Transparency.getValue()/100.0f;
auto colors = DiffuseColor.getValues();
for (auto &c : colors)
c.a = Transparency.getValue()/100.0f;
c.a = trans;
DiffuseColor.setValues(colors);
App::PropertyContainer* parent = ShapeMaterial.getContainer();