Materials: Fix MaterialManager being copied on getInstance()

This commit is contained in:
Kacper Donat
2025-05-18 10:58:30 +02:00
committed by Benjamin Nauck
parent 038cc5dc8c
commit c77a6e57ae
3 changed files with 6 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ void MaterialLibraryLocal::deleteRecursive(const QString& path)
}
QString filePath = getLocalPath(path);
auto manager = MaterialManager::getManager();
auto& manager = MaterialManager::getManager();
QFileInfo info(filePath);
if (info.isDir()) {