Eliminate dynamic_cast in BillboardCallback

move
scrawl 9 years ago
parent 60a12b3dee
commit 82b792f808

@ -132,9 +132,8 @@ namespace
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv)
{
osgUtil::CullVisitor* cv = dynamic_cast<osgUtil::CullVisitor*>(nv);
if (node && cv)
{
osgUtil::CullVisitor* cv = static_cast<osgUtil::CullVisitor*>(nv);
osg::Matrix modelView = *cv->getModelViewMatrix();
// attempt to preserve scale
@ -155,9 +154,6 @@ namespace
cv->popModelViewMatrix();
}
else
traverse(node, nv);
}
};
struct UpdateMorphGeometry : public osg::Drawable::CullCallback

Loading…
Cancel
Save