Adding missing checks against View's Camera and SceneData for any update callbacks that need calling.

This commit is contained in:
Robert Osfield
2011-10-31 15:29:49 +00:00
parent d95801f6a8
commit ca582c708d

View File

@@ -256,6 +256,10 @@ bool CompositeViewer::checkNeedToDoFrame()
// set so that the updates show up
if (view->getDatabasePager()->requiresUpdateSceneGraph() ||
view->getDatabasePager()->getRequestsInProgress()) return true;
// if there update callbacks then we need to do frame.
if (view->getCamera()->getUpdateCallback()) return true;
if (view->getSceneData()!=0 && view->getSceneData()->getNumChildrenRequiringUpdateTraversal()>0) return true;
}
}