From ec25998b12b2d5b32ef6e442bc79cfbd5ae360cd Mon Sep 17 00:00:00 2001 From: Aesylwinn Date: Sun, 3 Apr 2016 18:19:20 -0400 Subject: [PATCH] Cleanup, use setTraversalMask instead of setNodeMaskOverride --- apps/opencs/view/render/cameracontroller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/opencs/view/render/cameracontroller.cpp b/apps/opencs/view/render/cameracontroller.cpp index cf10cb346..0ca8aabf1 100644 --- a/apps/opencs/view/render/cameracontroller.cpp +++ b/apps/opencs/view/render/cameracontroller.cpp @@ -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