From 7165182e35975d51e46164ccf49481ac19fac02e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 16 Mar 2015 10:30:18 +0000 Subject: [PATCH] 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 --- src/osgAnimation/Animation.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osgAnimation/Animation.cpp b/src/osgAnimation/Animation.cpp index d3025f176..6df09c17f 100644 --- a/src/osgAnimation/Animation.cpp +++ b/src/osgAnimation/Animation.cpp @@ -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)