Added testing to see if camera allows events before automatically attaching a trackball manipulator
This commit is contained in:
@@ -687,7 +687,7 @@ int Viewer::run()
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!getCameraManipulator())
|
||||
if (!getCameraManipulator() && getCamera()->getAllowEventFocus())
|
||||
{
|
||||
setCameraManipulator(new osgGA::TrackballManipulator());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user