| 358 | } |
| 359 | |
| 360 | QString MaterialLibraryLocal::getUUIDFromPath(const QString& path) const |
| 361 | { |
| 362 | QString filePath = getRelativePath(path); |
| 363 | |
| 364 | auto search = _materialPathMap->find(filePath); |
| 365 | if (search != _materialPathMap->end()) { |
| 366 | return search->second->getUUID(); |
| 367 | } |
| 368 | |
| 369 | throw MaterialNotFound(); |
| 370 | } |
nothing calls this directly
no test coverage detected