From 8d4ab16f2bd487172efb45e04bbf698e9b30a612 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 24 Jun 2016 11:38:28 +0100 Subject: [PATCH] Fixed copy and paste error. --- src/osgGA/UFOManipulator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osgGA/UFOManipulator.cpp b/src/osgGA/UFOManipulator.cpp index 3e138a259..ae54dbbad 100644 --- a/src/osgGA/UFOManipulator.cpp +++ b/src/osgGA/UFOManipulator.cpp @@ -518,8 +518,9 @@ void UFOManipulator::_frame( const osgGA::GUIEventAdapter &ea, osgGA::GUIActionA if( fabs(_pitchOffset ) < 0.01 ) _pitchOffset = 0.0; + if( fabs(_yawOffset ) < 0.01 ) - _pitchOffset = 0.0; + _yawOffset = 0.0; } if( _pitchOffset == 0.0 && _yawOffset == 0.0 )