| 346 | } |
| 347 | |
| 348 | std::shared_ptr<Material> MaterialLibraryLocal::getMaterialByPath(const QString& path) const |
| 349 | { |
| 350 | QString filePath = getRelativePath(path); |
| 351 | |
| 352 | auto search = _materialPathMap->find(filePath); |
| 353 | if (search != _materialPathMap->end()) { |
| 354 | return search->second; |
| 355 | } |
| 356 | |
| 357 | throw MaterialNotFound(); |
| 358 | } |
| 359 | |
| 360 | QString MaterialLibraryLocal::getUUIDFromPath(const QString& path) const |
| 361 | { |