Materials: External interface refinements (#21524)
This commit is contained in:
@@ -147,13 +147,15 @@ Py::List MaterialManagerPy::getMaterialLibraries() const
|
||||
reinterpret_cast<const std::shared_ptr<Materials::MaterialLibraryLocal>&>(lib);
|
||||
libTuple.setItem(0, Py::String(materialLibrary->getName().toStdString()));
|
||||
libTuple.setItem(1, Py::String(materialLibrary->getDirectoryPath().toStdString()));
|
||||
libTuple.setItem(2, Py::String(materialLibrary->getIconPath().toStdString()));
|
||||
libTuple.setItem(2,
|
||||
Py::Bytes(Py::Bytes(materialLibrary->getIcon().data(),
|
||||
materialLibrary->getIcon().size())));
|
||||
}
|
||||
else
|
||||
{
|
||||
libTuple.setItem(0, Py::String());
|
||||
libTuple.setItem(1, Py::String());
|
||||
libTuple.setItem(2, Py::String());
|
||||
libTuple.setItem(2, Py::Bytes());
|
||||
}
|
||||
|
||||
list.append(libTuple);
|
||||
|
||||
Reference in New Issue
Block a user