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
eab82038ba
commit
d876e18808
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user