Materials: Pass by reference instead of pointers
Refactoring topass by reference instead of using existing pointers.
This commit is contained in:
committed by
Chris Hennes
parent
b7008de12a
commit
8b9f576538
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user