fix bug in ProxyNode with DEFER_LOADING_TO_DATABASE_PAGER causing crash when children reorder during load.
This commit is contained in:
parent
a827840baf
commit
68c5e6e6ca
@ -1646,7 +1646,12 @@ void DatabasePager::addLoadedDataToSceneGraph(const osg::FrameStamp &frameStamp)
|
|||||||
osg::ProxyNode* proxyNode = dynamic_cast<osg::ProxyNode*>(group.get());
|
osg::ProxyNode* proxyNode = dynamic_cast<osg::ProxyNode*>(group.get());
|
||||||
if (proxyNode)
|
if (proxyNode)
|
||||||
{
|
{
|
||||||
proxyNode->getDatabaseRequest(proxyNode->getNumChildren()) = 0;
|
for (unsigned int i = 0; i < proxyNode->getNumFileNames(); ++i) {
|
||||||
|
if (proxyNode->getDatabaseRequest(i) == databaseRequest) {
|
||||||
|
proxyNode->getDatabaseRequest(i) = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user