streamline DatabasePager::requiresUpdateSceneGraph()
would trigger unnecessary redraws when there were pending file requests or active database threads tested ok with and without IncrementalCompileOperation
This commit is contained in:
@@ -116,7 +116,7 @@ void Scene::setImagePager(osgDB::ImagePager* ip)
|
||||
bool Scene::requiresUpdateSceneGraph() const
|
||||
{
|
||||
// check if the database pager needs to update the scene
|
||||
if (getDatabasePager()->requiresUpdateSceneGraph() || getDatabasePager()->getRequestsInProgress()) return true;
|
||||
if (getDatabasePager()->requiresUpdateSceneGraph()) return true;
|
||||
|
||||
// check if the image pager needs to update the scene
|
||||
if (getImagePager()->requiresUpdateSceneGraph()) return true;
|
||||
|
||||
Reference in New Issue
Block a user