| 78 | } |
| 79 | |
| 80 | Py::String MaterialPy::getLibraryRoot() const |
| 81 | { |
| 82 | auto library = getMaterialPtr()->getLibrary(); |
| 83 | if (library->isLocal()) { |
| 84 | auto materialLibrary = |
| 85 | std::dynamic_pointer_cast<Materials::MaterialLibraryLocal>(library); |
| 86 | return {materialLibrary ? materialLibrary->getDirectoryPath().toStdString() : ""}; |
| 87 | } |
| 88 | return ""; |
| 89 | } |
| 90 | |
| 91 | Py::Object MaterialPy::getLibraryIcon() const |
| 92 | { |
nothing calls this directly
no test coverage detected