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
This commit is contained in:
parent
67f98edc05
commit
a21ce3469b
@ -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<int>(osg::sign(_speed));
|
||||
|
||||
if (_sbegin==_send)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user