From 4e3e789acfdd7f8566a530bf3ae5e7b09b4dfa29 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 27 May 2007 14:52:43 +0000 Subject: [PATCH] Added testing to see if camera allows events before automatically attaching a trackball manipulator --- src/osgViewer/Viewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/Viewer.cpp b/src/osgViewer/Viewer.cpp index 148ebc879..e572fa412 100644 --- a/src/osgViewer/Viewer.cpp +++ b/src/osgViewer/Viewer.cpp @@ -687,7 +687,7 @@ int Viewer::run() return 1; } - if (!getCameraManipulator()) + if (!getCameraManipulator() && getCamera()->getAllowEventFocus()) { setCameraManipulator(new osgGA::TrackballManipulator()); }