From fe28b2617189e21f033bff7f2ab45778eb4282dc Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 24 Jun 2016 12:10:53 +0100 Subject: [PATCH] Added initializers --- src/osgGA/DriveManipulator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osgGA/DriveManipulator.cpp b/src/osgGA/DriveManipulator.cpp index 4862aa143..16e1ff6ef 100644 --- a/src/osgGA/DriveManipulator.cpp +++ b/src/osgGA/DriveManipulator.cpp @@ -48,10 +48,13 @@ DriveManipulator::DriveManipulator() _velocity = 0.0; _height = getHeightOfDriver(); _buffer = _height*2.5; - _pitch = 0.0; + //_speedMode = USE_MOUSE_Y_FOR_SPEED; _speedMode = USE_MOUSE_BUTTONS_FOR_SPEED; + _pitch = 0.0; + _distance = 0.0; + _pitchUpKeyPressed = false; _pitchDownKeyPressed = false;