| 185 | } |
| 186 | |
| 187 | std::shared_ptr<Model> ModelManagerLocal::getModelByPath(const QString& path) const |
| 188 | { |
| 189 | QString cleanPath = QDir::cleanPath(path); |
| 190 | |
| 191 | for (auto& library : *_libraryList) { |
| 192 | if (library->isLocal()) { |
| 193 | auto localLibrary = std::static_pointer_cast<Materials::ModelLibraryLocal> (library); |
| 194 | if (cleanPath.startsWith(localLibrary->getDirectory(), localLibrary->caseSensitivity())) { |
| 195 | return localLibrary->getModelByPath(cleanPath); |
| 196 | } |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | throw ModelNotFound(); |
| 201 | } |
| 202 | |
| 203 | std::shared_ptr<Model> ModelManagerLocal::getModelByPath(const QString& path, |
| 204 | const QString& lib) const |
nothing calls this directly
no test coverage detected