Commit 4cce2d75 authored by Laurens Voerman's avatar Laurens Voerman Committed by Robert Osfield
Browse files

fix bug in ProxyNode with DEFER_LOADING_TO_DATABASE_PAGER causing crash when...

fix bug in ProxyNode with DEFER_LOADING_TO_DATABASE_PAGER causing crash when children reorder during load.
parent 76d7ec8e
......@@ -1646,7 +1646,12 @@ void DatabasePager::addLoadedDataToSceneGraph(const osg::FrameStamp &frameStamp)
osg::ProxyNode* proxyNode = dynamic_cast<osg::ProxyNode*>(group.get());
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;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment