From 68412a178414fe5ad98788521cab3adb8c08c41f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 29 Mar 2012 09:57:47 +0000 Subject: [PATCH] From Magnus Kessler, "remove unecessary conversion from float in double precision method" --- include/osg/AnimationPath | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osg/AnimationPath b/include/osg/AnimationPath index 8207be38e..f96e53028 100644 --- a/include/osg/AnimationPath +++ b/include/osg/AnimationPath @@ -83,7 +83,7 @@ class OSG_EXPORT AnimationPath : public virtual osg::Object inline void interpolate(double ratio,const ControlPoint& first, const ControlPoint& second) { - double one_minus_ratio = 1.0f-ratio; + double one_minus_ratio = 1.0-ratio; _position = first._position*one_minus_ratio + second._position*ratio; _rotation.slerp(ratio,first._rotation,second._rotation); _scale = first._scale*one_minus_ratio + second._scale*ratio;