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() );