From 601884131e135a271f512ff7cb3f96021990198a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 24 Jun 2016 11:58:38 +0100 Subject: [PATCH] Added initializers --- include/osgGA/StandardManipulator | 1 + src/osgGA/StandardManipulator.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/osgGA/StandardManipulator b/include/osgGA/StandardManipulator index cc117322a..d61565d74 100644 --- a/include/osgGA/StandardManipulator +++ b/include/osgGA/StandardManipulator @@ -152,6 +152,7 @@ class OSGGA_EXPORT StandardManipulator : public CameraManipulator bool _isAnimating; double _startTime; double _phase; + AnimationData(); void start( const double startTime ); }; diff --git a/src/osgGA/StandardManipulator.cpp b/src/osgGA/StandardManipulator.cpp index bc36d37e7..fcfbffb80 100644 --- a/src/osgGA/StandardManipulator.cpp +++ b/src/osgGA/StandardManipulator.cpp @@ -841,8 +841,11 @@ bool StandardManipulator::startAnimationByMousePointerIntersection( } -StandardManipulator::AnimationData::AnimationData() - :_isAnimating( false ) +StandardManipulator::AnimationData::AnimationData(): + _animationTime(0.0), + _isAnimating(false), + _startTime(0.0), + _phase(0.0) { }