forked from teamnwah/openmw-tes3coop
Cleanup, use setTraversalMask instead of setNodeMaskOverride
This commit is contained in:
parent
0ef7c778e0
commit
ec25998b12
1 changed files with 2 additions and 2 deletions
|
@ -93,14 +93,14 @@ namespace CSVRender
|
||||||
osg::ComputeBoundsVisitor boundsVisitor;
|
osg::ComputeBoundsVisitor boundsVisitor;
|
||||||
osg::BoundingBox& boundingBox = boundsVisitor.getBoundingBox();
|
osg::BoundingBox& boundingBox = boundsVisitor.getBoundingBox();
|
||||||
|
|
||||||
boundsVisitor.setNodeMaskOverride(mask);
|
boundsVisitor.setTraversalMask(mask);
|
||||||
root->accept(boundsVisitor);
|
root->accept(boundsVisitor);
|
||||||
|
|
||||||
if (!boundingBox.valid())
|
if (!boundingBox.valid())
|
||||||
{
|
{
|
||||||
// Try again without any mask
|
// Try again without any mask
|
||||||
boundsVisitor.reset();
|
boundsVisitor.reset();
|
||||||
boundsVisitor.setNodeMaskOverride(~0);
|
boundsVisitor.setTraversalMask(~0);
|
||||||
root->accept(boundsVisitor);
|
root->accept(boundsVisitor);
|
||||||
|
|
||||||
// Last resort, set a default
|
// Last resort, set a default
|
||||||
|
|
Loading…
Reference in a new issue