Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-03-01 07:12:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-01 07:12:56 +0400
commit315d85faa1b4f58a91041030dcac70085808c038 (patch)
treebd50f5c39440592d7f857a6f77c0893a2accaf0d /source
parentca4dde48f37f84cd1d01a855801c8534857ab95c (diff)
Fix for baked FCurve subframe interpolation (bad abs use)
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/fcurve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/fcurve.c b/source/blender/blenkernel/intern/fcurve.c
index 1d127a0eb33..1df574b509c 100644
--- a/source/blender/blenkernel/intern/fcurve.c
+++ b/source/blender/blenkernel/intern/fcurve.c
@@ -2115,7 +2115,7 @@ static float fcurve_eval_samples(FCurve *fcu, FPoint *fpts, float evaltime)
cvalue = lastfpt->vec[1];
}
else {
- float t = (float)abs(evaltime - (int)evaltime);
+ float t = fabsf(evaltime - floorf(evaltime));
/* find the one on the right frame (assume that these are spaced on 1-frame intervals) */
fpt = prevfpt + (int)(evaltime - prevfpt->vec[0]);