Added testing to see if camera allows events before automatically attaching a trackball manipulator

This commit is contained in:
Robert Osfield
2007-05-27 14:52:43 +00:00
parent 0ee956eb36
commit 4e3e789acf

View File

@@ -687,7 +687,7 @@ int Viewer::run()
return 1;
}
if (!getCameraManipulator())
if (!getCameraManipulator() && getCamera()->getAllowEventFocus())
{
setCameraManipulator(new osgGA::TrackballManipulator());
}