From 4bb147aed4ea63ad73425de9d03e76d13126503e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 4 Jun 2004 12:27:04 +0000 Subject: [PATCH] Added haveAppliedAttribute to allow draw callbacks to get access to the current active lights. --- src/osgUtil/RenderStageLighting.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgUtil/RenderStageLighting.cpp b/src/osgUtil/RenderStageLighting.cpp index e21cce7c9..96def9296 100644 --- a/src/osgUtil/RenderStageLighting.cpp +++ b/src/osgUtil/RenderStageLighting.cpp @@ -50,6 +50,9 @@ void RenderStageLighting::draw(osg::State& state,RenderLeaf*& previous) // apply the light source. litr->first->apply(state); + + // tell state about. + state.haveAppliedAttribute(litr->first); }