Added missing initialization in the AnimationPathCallback constructor.
This commit is contained in:
parent
ebbf92e43c
commit
a992676a98
@ -170,7 +170,7 @@ class SG_EXPORT AnimationPath : public virtual osg::Object
|
|||||||
void read(std::istream& in);
|
void read(std::istream& in);
|
||||||
|
|
||||||
/** write the anumation path to a flat ascii file stream.*/
|
/** write the anumation path to a flat ascii file stream.*/
|
||||||
void write(std::ostream& out);
|
void write(std::ostream& out) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@ -187,14 +187,13 @@ class SG_EXPORT AnimationPathCallback : public NodeCallback
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
AnimationPathCallback():
|
AnimationPathCallback():
|
||||||
|
_useInverseMatrix(false),
|
||||||
_timeOffset(0.0),
|
_timeOffset(0.0),
|
||||||
_timeMultiplier(1.0),
|
_timeMultiplier(1.0),
|
||||||
_firstTime(DBL_MAX),
|
_firstTime(DBL_MAX),
|
||||||
_latestTime(0.0),
|
_latestTime(0.0),
|
||||||
_pause(false),
|
|
||||||
_pauseTime(0.0) {}
|
_pauseTime(0.0) {}
|
||||||
|
|
||||||
|
|
||||||
AnimationPathCallback(const AnimationPathCallback& apc,const CopyOp& copyop):
|
AnimationPathCallback(const AnimationPathCallback& apc,const CopyOp& copyop):
|
||||||
NodeCallback(apc,copyop),
|
NodeCallback(apc,copyop),
|
||||||
_animationPath(apc._animationPath),
|
_animationPath(apc._animationPath),
|
||||||
|
@ -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();
|
const TimeControlPointMap& tcpm = getTimeControlPointMap();
|
||||||
for(TimeControlPointMap::const_iterator tcpmitr=tcpm.begin();
|
for(TimeControlPointMap::const_iterator tcpmitr=tcpm.begin();
|
||||||
|
Loading…
Reference in New Issue
Block a user