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:
committed by
Chris Hennes
parent
6175bdc985
commit
8bc796cd9c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user