Replace redundant asCullVisitor usage with a type check

This commit is contained in:
Capostrophic
2019-03-15 15:46:58 +03:00
committed by Robert Osfield
parent d8600411bd
commit dceb353fe6
2 changed files with 2 additions and 7 deletions

View File

@@ -22,8 +22,7 @@ osgParticle::ParticleSystemUpdater::ParticleSystemUpdater(const ParticleSystemUp
void osgParticle::ParticleSystemUpdater::traverse(osg::NodeVisitor& nv)
{
osgUtil::CullVisitor* cv = nv.asCullVisitor();
if (cv)
if (nv.getVisitorType() == osg::NodeVisitor::CULL_VISITOR)
{
if (nv.getFrameStamp())
{