Moved the scene related requiresUpdateSceneGraph() implementation details from View into Scene.

Added check against the ImagePager.
This commit is contained in:
Robert Osfield
2016-06-29 15:34:11 +01:00
parent 48c1d0e8da
commit 990c04d4b9
3 changed files with 20 additions and 10 deletions

View File

@@ -45,7 +45,9 @@ class OSGVIEWER_EXPORT Scene : public osg::Referenced
osgDB::ImagePager* getImagePager() { return _imagePager.get(); }
const osgDB::ImagePager* getImagePager() const { return _imagePager.get(); }
void updateSceneGraph(osg::NodeVisitor& updateVisitor);
virtual bool requiresUpdateSceneGraph() const;
virtual void updateSceneGraph(osg::NodeVisitor& updateVisitor);
/** Get the Scene object that has the specified node assigned to it.