Fixed handling of ShadowSetting LightNum

This commit is contained in:
Robert Osfield 2011-10-03 14:56:38 +00:00
parent bb48cef38c
commit 951a437c0c

View File

@ -801,7 +801,7 @@ bool ViewDependentShadowMap::selectActiveLights(osgUtil::CullVisitor* cv, ViewDe
if (light)
{
// is LightNum matched to that defined in settings
if (settings && settings->getLightNum()>=0 && light->getLightNum()!=settings->getLightNum()) break;
if (settings && settings->getLightNum()>=0 && light->getLightNum()!=settings->getLightNum()) continue;
LightDataList::iterator pll_itr = pll.begin();
for(; pll_itr != pll.end(); ++pll_itr)