Fix error from shader graph preventing compilation on main

This commit is contained in:
Sri Sham Haran 2022-10-27 09:22:42 +08:00
parent 6189768e6f
commit a854a50fb2
1 changed files with 4 additions and 4 deletions

View File

@ -584,7 +584,7 @@ namespace SHADE
void SHSceneGraph::Traverse (const UnaryFunction& predicate) const
{
TraverseAndInvokePredicate(root, predicate);
TraverseAndInvokeFunction(root, predicate);
}
/*-----------------------------------------------------------------------------------*/
@ -621,12 +621,12 @@ namespace SHADE
delete node;
}
void SHSceneGraph::TraverseAndInvokePredicate(const SHSceneNode* node, const UnaryFunction& predicate)
void SHSceneGraph::TraverseAndInvokeFunction (const SHSceneNode* node, const UnaryFunction& function)
{
for (auto* child : node->children)
{
predicate(child);
TraverseAndInvokePredicate(child, predicate);
function(child);
TraverseAndInvokeFunction(child, function);
}
}