mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
Ignore particle systems in getScreenBounds
This commit is contained in:
parent
b543308e3e
commit
3ebfb4e0d9
@ -1007,6 +1007,7 @@ namespace MWRender
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
osg::ComputeBoundsVisitor computeBound;
|
osg::ComputeBoundsVisitor computeBound;
|
||||||
|
computeBound.setTraversalMask(~Mask_ParticleSystem);
|
||||||
parent->accept(computeBound);
|
parent->accept(computeBound);
|
||||||
|
|
||||||
// PositionAttitudeTransform seems to be slightly faster than MatrixTransform
|
// PositionAttitudeTransform seems to be slightly faster than MatrixTransform
|
||||||
|
@ -484,6 +484,7 @@ namespace MWRender
|
|||||||
return osg::Vec4f();
|
return osg::Vec4f();
|
||||||
|
|
||||||
osg::ComputeBoundsVisitor computeBoundsVisitor;
|
osg::ComputeBoundsVisitor computeBoundsVisitor;
|
||||||
|
computeBoundsVisitor.setTraversalMask(~MWRender::Mask_ParticleSystem);
|
||||||
ptr.getRefData().getBaseNode()->accept(computeBoundsVisitor);
|
ptr.getRefData().getBaseNode()->accept(computeBoundsVisitor);
|
||||||
|
|
||||||
osg::Matrix viewProj = mViewer->getCamera()->getViewMatrix() * mViewer->getCamera()->getProjectionMatrix();
|
osg::Matrix viewProj = mViewer->getCamera()->getViewMatrix() * mViewer->getCamera()->getProjectionMatrix();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user