1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:15:32 +00:00

Cleanup, use setTraversalMask instead of setNodeMaskOverride

This commit is contained in:
Aesylwinn 2016-04-03 18:19:20 -04:00
parent 0ef7c778e0
commit ec25998b12

View file

@ -93,14 +93,14 @@ namespace CSVRender
osg::ComputeBoundsVisitor boundsVisitor;
osg::BoundingBox& boundingBox = boundsVisitor.getBoundingBox();
boundsVisitor.setNodeMaskOverride(mask);
boundsVisitor.setTraversalMask(mask);
root->accept(boundsVisitor);
if (!boundingBox.valid())
{
// Try again without any mask
boundsVisitor.reset();
boundsVisitor.setNodeMaskOverride(~0);
boundsVisitor.setTraversalMask(~0);
root->accept(boundsVisitor);
// Last resort, set a default