From: timoore Date: Mon, 17 Mar 2008 08:46:23 +0000 (+0000) Subject: rationalize node masks a bit X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c12e6cdc09166f509a29234178c99ed1631e1058;p=simgear.git rationalize node masks a bit --- diff --git a/simgear/scene/tgdb/obj.cxx b/simgear/scene/tgdb/obj.cxx index 63ce70ea..4f3a3be0 100644 --- a/simgear/scene/tgdb/obj.cxx +++ b/simgear/scene/tgdb/obj.cxx @@ -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); }