From 951a437c0c41b57ab73227dc6416d18c21b54b4e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 3 Oct 2011 14:56:38 +0000 Subject: [PATCH] Fixed handling of ShadowSetting LightNum --- src/osgShadow/ViewDependentShadowMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgShadow/ViewDependentShadowMap.cpp b/src/osgShadow/ViewDependentShadowMap.cpp index 984830306..745f8c38e 100644 --- a/src/osgShadow/ViewDependentShadowMap.cpp +++ b/src/osgShadow/ViewDependentShadowMap.cpp @@ -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)