diff options
-rw-r--r-- | src/imports/timeline/qquickkeyframe.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/timeline/qquickkeyframe.cpp b/src/imports/timeline/qquickkeyframe.cpp index 5ea84f0..dc13895 100644 --- a/src/imports/timeline/qquickkeyframe.cpp +++ b/src/imports/timeline/qquickkeyframe.cpp @@ -329,6 +329,9 @@ QVariant QQuickKeyframe::evaluate(QQuickKeyframe *pre, qreal frametime, int user QVariant convertedValue = value(); convertedValue.convert(userType); + if (!interpolator) + return preValue; + if (preValue.isValid() && convertedValue.isValid()) return interpolator(preValue.constData(), convertedValue.constData(), progress); |