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 )