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:
parent
4d042581a6
commit
5832dadb68
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user