Skip to content

Commit

Permalink
Disable throwing behaviour for trackball manipulator
Browse files Browse the repository at this point in the history
  • Loading branch information
Pseudomanifold committed Mar 12, 2015
1 parent 508850e commit 6fa9038
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OSGWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ OSGWidget::OSGWidget( QWidget* parent,
#ifdef WITH_PICK_HANDLER
view->addEventHandler( new PickHandler );
#endif
view->setCameraManipulator( new osgGA::TrackballManipulator );

osgGA::TrackballManipulator* manipulator = new osgGA::TrackballManipulator;
manipulator->setAllowThrow( false );

view->setCameraManipulator( manipulator );

osg::Camera* sideCamera = new osg::Camera;
sideCamera->setViewport( this->width() /2, 0,
Expand Down

0 comments on commit 6fa9038

Please sign in to comment.