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:
parent
59bf100907
commit
db00d47ca2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue