mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-24 15:11:35 +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);
|
osgUtil::CullVisitor* cv = static_cast<osgUtil::CullVisitor*>(nv);
|
||||||
float fov, aspect, zNear, zFar;
|
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;
|
fov = mFov;
|
||||||
osg::ref_ptr<osg::RefMatrix> newProjectionMatrix = new osg::RefMatrix();
|
osg::ref_ptr<osg::RefMatrix> newProjectionMatrix = new osg::RefMatrix();
|
||||||
|
|
Loading…
Reference in a new issue