mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 06:09:42 +00:00
npcanimation.cpp (#3148)
This commit is contained in:
parent
3f731cd102
commit
8e9851c97c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue