npcanimation.cpp (#3148)

pull/3149/head
Bo Svensson 3 years ago committed by GitHub
parent 3f731cd102
commit 8e9851c97c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -403,7 +403,7 @@ public:
{
osgUtil::CullVisitor* cv = static_cast<osgUtil::CullVisitor*>(nv);
float fov, aspect, zNear, zFar;
if (cv->getProjectionMatrix()->getPerspective(fov, aspect, zNear, zFar))
if (cv->getProjectionMatrix()->getPerspective(fov, aspect, zNear, zFar) && std::abs(fov-mFov) > 0.001)
{
fov = mFov;
osg::ref_ptr<osg::RefMatrix> newProjectionMatrix = new osg::RefMatrix();

Loading…
Cancel
Save