Thanks Magnus, fix merged and submitted to svn/trunk.
On Thu, Aug 20, 2009 at 11:13 AM, Magnus Kessler<[email protected]> wrote: > At the end of the void function > osg::Animation::TemplateStepInterpolator::getValue the code tries to return > the result rather than assigning it to the result parameter reference. > > The following patch fixes this. > > diff --git a/include/osgAnimation/Interpolator > b/include/osgAnimation/Interpolator > index 5a99c1b..3d3edbe 100644 > --- a/include/osgAnimation/Interpolator > +++ b/include/osgAnimation/Interpolator > @@ -86,7 +86,7 @@ namespace osgAnimation > } > > int i = getKeyIndexFromTime(keyframes,time); > - return keyframes[i].getValue(); > + result = keyframes[i].getValue(); > } > }; > > The full <osgAnimation/Interpolator> file is attached with this patch applied. > > Regards, > > Magnus Kessler > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
