From 5832dadb683a65d04832e3cde5f9f1fa7912b736 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 4 Jan 2008 15:33:21 +0000 Subject: [PATCH] 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" --- src/osg/Sequence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Sequence.cpp b/src/osg/Sequence.cpp index 5987064e1..1fb099904 100644 --- a/src/osg/Sequence.cpp +++ b/src/osg/Sequence.cpp @@ -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))