Merge branch 'releases/2.2.0' into next
This commit is contained in:
@@ -46,8 +46,10 @@ SGPagedLOD::~SGPagedLOD()
|
|||||||
}
|
}
|
||||||
|
|
||||||
SGPagedLOD::SGPagedLOD(const SGPagedLOD& plod,const CopyOp& copyop)
|
SGPagedLOD::SGPagedLOD(const SGPagedLOD& plod,const CopyOp& copyop)
|
||||||
: osg::PagedLOD(plod, copyop),
|
: osg::PagedLOD(plod, copyop)
|
||||||
_readerWriterOptions(plod._readerWriterOptions)
|
#if !SG_PAGEDLOD_HAS_OPTIONS
|
||||||
|
, _readerWriterOptions(plod._readerWriterOptions)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,7 +86,7 @@ void SGPagedLOD::forceLoad(osgDB::DatabasePager *dbp, FrameStamp* framestamp,
|
|||||||
dbp->requestNodeFile(getFileName(childNum), NodePathProxy(path),
|
dbp->requestNodeFile(getFileName(childNum), NodePathProxy(path),
|
||||||
priority, framestamp,
|
priority, framestamp,
|
||||||
getDatabaseRequest(childNum),
|
getDatabaseRequest(childNum),
|
||||||
_readerWriterOptions.get());
|
getReaderWriterOptions());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SGPagedLOD_writeLocalData(const Object& obj, osgDB::Output& fw)
|
bool SGPagedLOD_writeLocalData(const Object& obj, osgDB::Output& fw)
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~SGPagedLOD();
|
virtual ~SGPagedLOD();
|
||||||
#if SG_PAGEDLOD_HAS_OPTIONS
|
#if !SG_PAGEDLOD_HAS_OPTIONS
|
||||||
osg::ref_ptr<osgDB::ReaderWriter::Options> _readerWriterOptions;
|
osg::ref_ptr<osgDB::ReaderWriter::Options> _readerWriterOptions;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user