Ignore effect meshes in getScreenBounds

c++11
scrawl 10 years ago
parent d5a47cfafe
commit 4b2391c60f

@ -488,7 +488,7 @@ namespace MWRender
return osg::Vec4f();
osg::ComputeBoundsVisitor computeBoundsVisitor;
computeBoundsVisitor.setTraversalMask(~MWRender::Mask_ParticleSystem);
computeBoundsVisitor.setTraversalMask(~(Mask_ParticleSystem|Mask_Effect));
ptr.getRefData().getBaseNode()->accept(computeBoundsVisitor);
osg::Matrix viewProj = mViewer->getCamera()->getViewMatrix() * mViewer->getCamera()->getProjectionMatrix();

Loading…
Cancel
Save