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,9 +37,10 @@ public:
|
||||
_autoDiscovery->registerService(type, port);
|
||||
}
|
||||
|
||||
virtual void checkEvents()
|
||||
virtual bool checkEvents()
|
||||
{
|
||||
_autoDiscovery->update();
|
||||
return !(getEventQueue()->empty());
|
||||
}
|
||||
|
||||
virtual void sendEvent(const osgGA::GUIEventAdapter& event)
|
||||
@@ -72,9 +73,10 @@ class ZeroConfDiscoverDevice : public osgGA::Device {
|
||||
public:
|
||||
ZeroConfDiscoverDevice(const std::string& type);
|
||||
|
||||
virtual void checkEvents()
|
||||
virtual bool checkEvents()
|
||||
{
|
||||
_autoDiscovery->update();
|
||||
return !(getEventQueue()->empty());
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user