]> git.mxchange.org Git - simgear.git/commitdiff
rationalize node masks a bit
authortimoore <timoore>
Mon, 17 Mar 2008 08:46:23 +0000 (08:46 +0000)
committertimoore <timoore>
Mon, 17 Mar 2008 08:46:23 +0000 (08:46 +0000)
simgear/scene/tgdb/obj.cxx

index 63ce70ea388a7501ebdb75ee4c3fb5fdcb0bbbe3..4f3a3be0603d213b5196dd2c21e7be0768584cb0 100644 (file)
@@ -765,12 +765,7 @@ SGLoadBTG(const std::string& path, SGMaterialLib *matlib, bool calc_lights, bool
   if (lightGroup->getNumChildren() > 0) {
     osg::LOD* lightLOD = new osg::LOD;
     lightLOD->addChild(lightGroup.get(), 0, 30000);
-    unsigned nodeMask = ~0u;
-    nodeMask &= ~SG_NODEMASK_CASTSHADOW_BIT;
-    nodeMask &= ~SG_NODEMASK_RECIEVESHADOW_BIT;
-    nodeMask &= ~SG_NODEMASK_PICK_BIT;
-    nodeMask &= ~SG_NODEMASK_TERRAIN_BIT;
-    lightLOD->setNodeMask(nodeMask);
+    lightLOD->setNodeMask(LIGHTS_BITS);
     transform->addChild(lightLOD);
   }