| 67 | } |
| 68 | |
| 69 | Py::String MaterialPy::getLibraryName() const |
| 70 | { |
| 71 | auto library = getMaterialPtr()->getLibrary(); |
| 72 | if (library->isLocal()) { |
| 73 | auto materialLibrary = |
| 74 | std::dynamic_pointer_cast<Materials::MaterialLibraryLocal>(library); |
| 75 | return {materialLibrary ? materialLibrary->getName().toStdString() : ""}; |
| 76 | } |
| 77 | return ""; |
| 78 | } |
| 79 | |
| 80 | Py::String MaterialPy::getLibraryRoot() const |
| 81 | { |
nothing calls this directly
no test coverage detected