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

@@ -3099,6 +3099,16 @@ float PropertyMaterialList::getTransparency(int index) const
return _lValueList[index].transparency;
}
std::vector<float> PropertyMaterialList::getTransparencies() const
{
std::vector<float> list;
for (auto& material : _lValueList) {
list.push_back(material.transparency);
}
return list;
}
Material PropertyMaterialList::getPyValue(PyObject* value) const
{
if (PyObject_TypeCheck(value, &(MaterialPy::Type))) {