diff options
-rw-r--r-- | source/blender/blenlib/intern/easing.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/easing.c b/source/blender/blenlib/intern/easing.c index c767c62490f..62e4b5880fb 100644 --- a/source/blender/blenlib/intern/easing.c +++ b/source/blender/blenlib/intern/easing.c @@ -182,7 +182,8 @@ float BLI_easing_elastic_ease_out(float time, float begin, float change, float d else s = period / (2 * (float)M_PI) * asinf(change / amplitude); - return (amplitude * powf(2, -10 * time) * sinf((time * duration - s) * (2 * (float)M_PI) / period) + change + begin); + time = -time; + return (amplitude * powf(2, 10 * time) * sinf((time * duration - s) * (2 * (float)M_PI) / period) + change + begin); } float BLI_easing_elastic_ease_in_out(float time, float begin, float change, float duration, float amplitude, float period) |