|
|
|
@ -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
|
|
|
|
|