From b20abdb819ce8f460b875c4c9fafab2aaa76ac48 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 25 Jan 2012 15:38:31 +0000 Subject: [PATCH] Changed the KeyEventToggleTexturing to 'e' to avoid conflict with 't' used for transparency. --- applications/present3D/present3D.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applications/present3D/present3D.cpp b/applications/present3D/present3D.cpp index 8337c4f6f..82ced43ea 100644 --- a/applications/present3D/present3D.cpp +++ b/applications/present3D/present3D.cpp @@ -434,7 +434,9 @@ int main( int argc, char **argv ) } // add the state manipulator - viewer.addEventHandler( new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()) ); + osg::ref_ptr ssManipulator = new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()); + ssManipulator->setKeyEventToggleTexturing('e'); + viewer.addEventHandler( ssManipulator.get() ); // add the state manipulator viewer.addEventHandler( new osgViewer::StatsHandler() );