MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / isLocalLibrary

Method isLocalLibrary

src/Mod/Material/App/ModelManager.cpp:225–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225bool ModelManager::isLocalLibrary([[maybe_unused]] const QString& libraryName)
226{
227#if defined(BUILD_MATERIAL_EXTERNAL)
228 if (_useExternal) {
229 try {
230 auto lib = _externalManager->getLibrary(libraryName);
231 if (lib) {
232 return false;
233 }
234 }
235 catch (const LibraryNotFound& e) {
236 }
237 }
238#endif
239 return true;
240}
241
242//=====
243//

Callers

nothing calls this directly

Calls 1

getLibraryMethod · 0.45

Tested by

no test coverage detected