From a21ce3469bfa5b6868409223ac85e8d5fa51a56d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 26 Jun 2014 11:49:59 +0000 Subject: [PATCH] From Sebastian Messerschmidt, "I've applied a simple fix for the backward animation support in osg::Sequence. It will simply use the sign of the speed set in the getNextValue. Attached file is against trunk." git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14302 16af8721-9629-0410-8352-f15c8da7e697 --- 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 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) {