From 65784896e1bac54a993b801552050ad5e63a94e5 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sat, 19 May 2012 20:41:58 +0200 Subject: [PATCH] Revert "Hack to avoid redrawing the whole scene another time when only light volume are requested" This reverts commit e692e7c119c67662f63fec7c3761baf7d4b4cef1. --- simgear/scene/material/EffectCullVisitor.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/simgear/scene/material/EffectCullVisitor.cxx b/simgear/scene/material/EffectCullVisitor.cxx index 4559ee0b..4f84552e 100644 --- a/simgear/scene/material/EffectCullVisitor.cxx +++ b/simgear/scene/material/EffectCullVisitor.cxx @@ -52,8 +52,6 @@ CullVisitor* EffectCullVisitor::clone() const void EffectCullVisitor::apply(osg::Geode& node) { - if (node.getNodeMask() != simgear::MODELLIGHT_BIT ) // HACK - node.setNodeMask(node.getNodeMask() & ~simgear::MODELLIGHT_BIT); if (isCulled(node)) return; EffectGeode *eg = dynamic_cast(&node); -- 2.39.5