Skip to content

Commit

Permalink
Added testing to see if camera allows events before automatically att…
Browse files Browse the repository at this point in the history
…aching a trackball manipulator
  • Loading branch information
robertosfield committed May 27, 2007
1 parent b4c87d5 commit 7468cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osgViewer/Viewer.cpp
Expand Up @@ -687,7 +687,7 @@ int Viewer::run()
return 1;
}

if (!getCameraManipulator())
if (!getCameraManipulator() && getCamera()->getAllowEventFocus())
{
setCameraManipulator(new osgGA::TrackballManipulator());
}
Expand Down

0 comments on commit 7468cac

Please sign in to comment.