From 4438ab44934f84f04c68a37a6305320677a84444 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Thu, 24 Jan 2019 22:42:23 +0000 Subject: [PATCH] Use CullVisitor traversal mask for light manager. --- components/sceneutil/lightmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sceneutil/lightmanager.cpp b/components/sceneutil/lightmanager.cpp index e102653b90..cb6a12c879 100644 --- a/components/sceneutil/lightmanager.cpp +++ b/components/sceneutil/lightmanager.cpp @@ -399,7 +399,7 @@ namespace SceneUtil return false; } - if (!(cv->getCurrentCamera()->getCullMask() & mLightManager->getLightingMask())) + if (!(cv->getTraversalMask() & mLightManager->getLightingMask())) return false; // Possible optimizations: