Changed the AnimationPathCallback::reset() to reset the _firstTime to DBL_MAX

so that it resets on the next update traversal.
This commit is contained in:
Robert Osfield 2004-08-24 18:23:53 +00:00
parent 91dfbf1f06
commit f15877f89b

View File

@ -197,8 +197,13 @@ void AnimationPathCallback::update(osg::Node& node)
void AnimationPathCallback::reset()
{
#if 1
_firstTime = DBL_MAX;
_pauseTime = DBL_MAX;
#else
_firstTime = _latestTime;
_pauseTime = _latestTime;
#endif
}
void AnimationPathCallback::setPause(bool pause)
@ -209,6 +214,9 @@ void AnimationPathCallback::setPause(bool pause)
}
_pause = pause;
if (_firstTime==DBL_MAX) return;
if (_pause)
{
_pauseTime = _latestTime;