summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuan Jose Casafranca <juan.casafranca@kdab.com>2018-07-28 14:44:50 +0200
committerJuan José Casafranca <juan.casafranca@kdab.com>2018-07-31 16:44:52 +0000
commit6caecac1c8ad88cec373f7f7ea14cab9931ed2a1 (patch)
treec88d1870c97ff3dd1491ba25085a9d639d510f7c /src
parented1ca081f0b0ae765c469bae5fe8849477c7b144 (diff)
Enable ConstantInterpolation for fcurves
Change-Id: If51c8377f5b29433feaa520a7586f0608b7510f1 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/animation/backend/fcurve.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/animation/backend/fcurve.cpp b/src/animation/backend/fcurve.cpp
index edb2b6df8..c4361a37a 100644
--- a/src/animation/backend/fcurve.cpp
+++ b/src/animation/backend/fcurve.cpp
@@ -71,8 +71,7 @@ float FCurve::evaluateAtTime(float localTime) const
switch (keyframe0.interpolation) {
case QKeyFrame::ConstantInterpolation:
- qWarning("Constant interpolation not implemented yet");
- break;
+ return keyframe0.value;
case QKeyFrame::LinearInterpolation:
if (localTime >= t0 && localTime <= t1 && t1 > t0) {
float t = (localTime - t0) / (t1 - t0);