Fixed panning bug, when using RUN_ON_DEMAND, that resulted in the camera being thrown off towards infinity.
The solution for to refactor the way that events are checked so I add a bool return type to checkEvents() method across osgViewer::GraphcisWindow, osgGA::Devive and osgViewer::Viewer/CompositeViewer classes
This commit is contained in:
@@ -37,7 +37,7 @@ class OSGGA_EXPORT Device : public osg::Object
|
||||
|
||||
int getCapabilities() const { return _capabilities; }
|
||||
|
||||
virtual void checkEvents() {};
|
||||
virtual bool checkEvents() { return _eventQueue.valid() ? !(getEventQueue()->empty()) : false; }
|
||||
virtual void sendEvent(const GUIEventAdapter& ea);
|
||||
virtual void sendEvents(const EventQueue::Events& events);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user