From Glenn Waldron, "I found that osg::Sequence::setDuration(speed,reps) was not changing the animation speed factor as expected. The one-line fix (line 312) is attached"

This commit is contained in:
Robert Osfield 2008-01-04 15:33:21 +00:00
parent 4d042581a6
commit 5832dadb68

View File

@ -309,7 +309,7 @@ void Sequence::traverse(NodeVisitor& nv)
if (!_sync ||
((_now - _start) <= (_frameTime[_value]+_frameTime[nextValue])*osg::absolute(_speed)) )
{
_start += _frameTime[_value];
_start += _frameTime[_value]*osg::absolute(_speed);
// repeat or change directions?
if ( (_step>0 && nextValue==_send) ||
(_step<0 && nextValue==_sbegin))