]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/material/EffectCullVisitor.cxx
Work around apparent OSG 3.2.0 normal binding bug.
[simgear.git] / simgear / scene / material / EffectCullVisitor.cxx
index 4559ee0b43b3c56dd1c1922dbbf6e48399ca731a..4f84552e56584dda0cc1ea3ee4ef583b869b0595 100644 (file)
@@ -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<EffectGeode*>(&node);