From a992676a9850b7deeac499e4e8b8cf4e56d3eb98 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 20 Feb 2004 20:10:51 +0000 Subject: [PATCH] Added missing initialization in the AnimationPathCallback constructor. --- include/osg/AnimationPath | 5 ++--- src/osg/AnimationPath.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/osg/AnimationPath b/include/osg/AnimationPath index 96814443e..0cbed58e8 100644 --- a/include/osg/AnimationPath +++ b/include/osg/AnimationPath @@ -170,7 +170,7 @@ class SG_EXPORT AnimationPath : public virtual osg::Object void read(std::istream& in); /** write the anumation path to a flat ascii file stream.*/ - void write(std::ostream& out); + void write(std::ostream& out) const; protected: @@ -187,13 +187,12 @@ class SG_EXPORT AnimationPathCallback : public NodeCallback public: AnimationPathCallback(): + _useInverseMatrix(false), _timeOffset(0.0), _timeMultiplier(1.0), _firstTime(DBL_MAX), _latestTime(0.0), - _pause(false), _pauseTime(0.0) {} - AnimationPathCallback(const AnimationPathCallback& apc,const CopyOp& copyop): NodeCallback(apc,copyop), diff --git a/src/osg/AnimationPath.cpp b/src/osg/AnimationPath.cpp index 0360749cd..62648c9a3 100644 --- a/src/osg/AnimationPath.cpp +++ b/src/osg/AnimationPath.cpp @@ -95,7 +95,7 @@ void AnimationPath::read(std::istream& in) } } -void AnimationPath::write(std::ostream& fout) +void AnimationPath::write(std::ostream& fout) const { const TimeControlPointMap& tcpm = getTimeControlPointMap(); for(TimeControlPointMap::const_iterator tcpmitr=tcpm.begin();