Fixed warning

This commit is contained in:
Robert Osfield 2018-09-11 12:29:40 +01:00
parent 583ecccd75
commit 7c1a967a02

View File

@ -25,6 +25,7 @@ class EscapeHandler : public osgGA::GUIEventHandler
return true;
}
break;
}
default:
@ -95,7 +96,7 @@ int main(int argc,char** argv)
// add a custom escape handler, but disable the standard viewer one to enable the vnc images to handle
// the escape without it getting caught by the viewer.
viewer.addEventHandler(new EscapeHandler);
viewer.addEventHandler(new EscapeHandler);
viewer.setKeyEventSetsDone(0);
return viewer.run();