From a854a50fb275eaad32248701ba5404cf78dcb26c Mon Sep 17 00:00:00 2001 From: Sri Sham Haran Date: Thu, 27 Oct 2022 09:22:42 +0800 Subject: [PATCH] Fix error from shader graph preventing compilation on main --- SHADE_Engine/src/Scene/SHSceneGraph.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SHADE_Engine/src/Scene/SHSceneGraph.cpp b/SHADE_Engine/src/Scene/SHSceneGraph.cpp index 950fd6a0..574747ec 100644 --- a/SHADE_Engine/src/Scene/SHSceneGraph.cpp +++ b/SHADE_Engine/src/Scene/SHSceneGraph.cpp @@ -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); } }