From Brad Christiansen, "Attached is a fix which implements the lazy loading of optional layers (if requested) in the new osgb/osgt formats."
This commit is contained in:
@@ -476,8 +476,9 @@ osg::PrimitiveSet* InputStream::readPrimitiveSet()
|
||||
return primitive.release();
|
||||
}
|
||||
|
||||
osg::Image* InputStream::readImage()
|
||||
osg::Image* InputStream::readImage(bool readFromExternal)
|
||||
{
|
||||
|
||||
std::string className="osg::Image";
|
||||
unsigned int id = 0;
|
||||
|
||||
@@ -497,7 +498,7 @@ osg::Image* InputStream::readImage()
|
||||
if ( getException() ) return NULL;
|
||||
|
||||
osg::ref_ptr<osg::Image> image = NULL;
|
||||
bool readFromExternal = true;
|
||||
|
||||
switch ( decision )
|
||||
{
|
||||
case IMAGE_INLINE_DATA:
|
||||
|
||||
Reference in New Issue
Block a user