From Konstantin Matveyev, "Last update in the osgAnimation::Animation ONCE mode bug fix"

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14790 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-03-16 10:30:51 +00:00
parent 5878a70ede
commit f9a20d017a

View File

@@ -107,7 +107,13 @@ bool Animation::update (double time, int priority)
{
case ONCE:
if (t > _originalDuration)
{
for (ChannelList::const_iterator chan = _channels.begin();
chan != _channels.end(); ++chan)
(*chan)->update(_originalDuration, _weight, priority);
return false;
}
break;
case STAY:
if (t > _originalDuration)