mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 19:39:41 +00:00
Ignore particle systems in getScreenBounds
This commit is contained in:
parent
b543308e3e
commit
3ebfb4e0d9
2 changed files with 2 additions and 0 deletions
|
@ -1007,6 +1007,7 @@ namespace MWRender
|
|||
else
|
||||
{
|
||||
osg::ComputeBoundsVisitor computeBound;
|
||||
computeBound.setTraversalMask(~Mask_ParticleSystem);
|
||||
parent->accept(computeBound);
|
||||
|
||||
// PositionAttitudeTransform seems to be slightly faster than MatrixTransform
|
||||
|
|
|
@ -484,6 +484,7 @@ namespace MWRender
|
|||
return osg::Vec4f();
|
||||
|
||||
osg::ComputeBoundsVisitor computeBoundsVisitor;
|
||||
computeBoundsVisitor.setTraversalMask(~MWRender::Mask_ParticleSystem);
|
||||
ptr.getRefData().getBaseNode()->accept(computeBoundsVisitor);
|
||||
|
||||
osg::Matrix viewProj = mViewer->getCamera()->getViewMatrix() * mViewer->getCamera()->getProjectionMatrix();
|
||||
|
|
Loading…
Reference in a new issue