From 659f7ad1aba1bf9dae9fed612bad3c5b3287072f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 16 Oct 2001 10:03:19 +0000 Subject: [PATCH] Modified Veiewer.cpp so that when toggling the light with 'l' the light can be overrided to off and overrided to on, previoulsy it only overrided to off. --- src/osgGLUT/Viewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgGLUT/Viewer.cpp b/src/osgGLUT/Viewer.cpp index 28c371844..a1b781163 100644 --- a/src/osgGLUT/Viewer.cpp +++ b/src/osgGLUT/Viewer.cpp @@ -1108,7 +1108,7 @@ void Viewer::keyboard(unsigned char key, int x, int y) case 'l' : lighting = 1 - lighting ; if( lighting ) - sceneView->getGlobalState()->setMode(GL_LIGHTING,osg::StateAttribute::ON); + sceneView->getGlobalState()->setMode(GL_LIGHTING,osg::StateAttribute::OVERRIDE_ON); else sceneView->getGlobalState()->setMode(GL_LIGHTING,osg::StateAttribute::OVERRIDE_OFF); break;