split requiresUpdateSceneGraph() into requires update and requires redraw (wip)

This commit is contained in:
Philippe Renon
2016-07-04 23:19:20 +02:00
parent e23a30652d
commit 22d53357d3
6 changed files with 28 additions and 7 deletions

View File

@@ -150,6 +150,14 @@ void Scene::updateSceneGraph(osg::NodeVisitor& updateVisitor)
}
}
bool Scene::requiresRedraw() const
{
// check if the database pager needs a redraw
if (getDatabasePager()->requiresRedraw()) return true;
return false;
}
Scene* Scene::getScene(osg::Node* node)
{