1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

Hold a ref to the intersection visitor's view if possible

This commit is contained in:
scrawl 2017-03-12 19:47:59 +01:00
parent 59bf100907
commit db00d47ca2

View file

@ -143,7 +143,7 @@ ViewData* QuadTreeNode::getView(osg::NodeVisitor &nv)
}
else // INTERSECTION_VISITOR
{
return mViewDataMap->getViewData(&nv, false);
return mViewDataMap->getViewData(&nv, (nv.referenceCount() > 0)); // if no referenceCount, the visitor was allocated on the stack
}
}