Fix error from shader graph preventing compilation on main
This commit is contained in:
parent
6189768e6f
commit
a854a50fb2
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue