Improved the handling of setStartTick() being called mid app, such as when idirectly called when doing a Viewer::setSceneData().

Improved the setting the the initial event state.
This commit is contained in:
Robert Osfield
2011-11-04 12:47:24 +00:00
parent 0329ca5cea
commit e8bae33143
3 changed files with 36 additions and 5 deletions

View File

@@ -1200,6 +1200,8 @@ void GraphicsWindowX11::checkEvents()
double eventTime = baseTime;
double resizeTime = eventTime;
_timeOfLastCheckEvents = getEventQueue()->getTime();
if (baseTime>_timeOfLastCheckEvents) baseTime = _timeOfLastCheckEvents;
// OSG_NOTICE<<"GraphicsWindowX11::checkEvents() : getEventQueue()->getCurrentEventState()->getGraphicsContext()="<<getEventQueue()->getCurrentEventState()->getGraphicsContext()<<std::endl;