Show
Ignore:
Timestamp:
08/24/04 20:23:53 (10 years ago)
Author:
robert
Message:

Changed the AnimationPathCallback::reset() to reset the _firstTime to DBL_MAX
so that it resets on the next update traversal.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/AnimationPath.cpp

    r3046 r3319  
    198198void AnimationPathCallback::reset() 
    199199{ 
     200#if 1 
     201    _firstTime = DBL_MAX; 
     202    _pauseTime = DBL_MAX; 
     203#else 
    200204    _firstTime = _latestTime; 
    201205    _pauseTime = _latestTime; 
     206#endif 
    202207} 
    203208 
     
    210215     
    211216    _pause = pause; 
     217 
     218    if (_firstTime==DBL_MAX) return; 
     219 
    212220    if (_pause) 
    213221    {