Materials: Correct DiffuseColor custom attribute

Custom attributes were modified to maintain the behaviour of setting
transparencies using the DiffuseColor alpha channels
This commit is contained in:
David Carter
2024-10-01 01:15:16 -04:00
committed by Chris Hennes
parent 6175bdc985
commit 8bc796cd9c
8 changed files with 127 additions and 3 deletions

View File

@@ -346,7 +346,6 @@ void ViewProviderPartExt::onChanged(const App::Property* prop)
std::vector<float> transparencies;
transparencies.resize(static_cast<int>(colors.size()));
for (int i = 0; i < static_cast<int>(colors.size()); i++) {
Base::Console().Log("%d: %f\n", i, colors[i].a);
transparencies[i] = colors[i].a;
colors[i].a = 1.0;
}