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

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14789 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-03-16 10:30:18 +00:00
parent a88fa6f7b7
commit 7165182e35

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)