Materials: Pass by reference instead of pointers

Refactoring topass by reference instead of using existing pointers.
This commit is contained in:
David Carter
2025-05-29 10:22:58 -04:00
committed by Chris Hennes
parent b7008de12a
commit 8b9f576538
28 changed files with 211 additions and 238 deletions

View File

@@ -345,7 +345,7 @@ PyObject* MaterialManagerPy::filterMaterials(PyObject* args, PyObject* kwds)
Py::List list;
for (auto lib : *libraries) {
auto tree = getMaterialManagerPtr()->getMaterialTree(lib, filter, options);
auto tree = getMaterialManagerPtr()->getMaterialTree(*lib, *filter, options);
if (tree->size() > 0) {
addMaterials(getMaterialManagerPtr(), list, tree);
}