diff --git a/src/osg/Sequence.cpp b/src/osg/Sequence.cpp index 8b5460096..ef0360691 100644 --- a/src/osg/Sequence.cpp +++ b/src/osg/Sequence.cpp @@ -402,7 +402,7 @@ int Sequence::_getNextValue() int _sbegin = osg::minimum(_ubegin,_uend); int _send = osg::maximum(_ubegin,_uend); - int v = _value + _step; + int v = _value + _step * static_cast(osg::sign(_speed)); if (_sbegin==_send) {