summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsanimationmanager.cpp
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2018-03-14 17:29:00 +0100
committerChristian Stromme <christian.stromme@qt.io>2018-04-03 12:43:38 +0000
commit2cafab73e7c5262b309c9c9ded114392e2e43114 (patch)
treee6f693070956dac6724ef181dc180b94217299d3 /src/runtime/q3dsanimationmanager.cpp
parent925c962433d7b21fce3b1015a76670a528fb8441 (diff)
Update smooth constant
We used an approximation to work around an issue in our bezier calculation, since that has now been resolved, we can use a more descriptive and correct value. Change-Id: I845a84baebc43f4f50d8951ea39e8c4897d44bbb Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/runtime/q3dsanimationmanager.cpp')
-rw-r--r--src/runtime/q3dsanimationmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/q3dsanimationmanager.cpp b/src/runtime/q3dsanimationmanager.cpp
index 64d7536..aaef903 100644
--- a/src/runtime/q3dsanimationmanager.cpp
+++ b/src/runtime/q3dsanimationmanager.cpp
@@ -344,7 +344,7 @@ void Q3DSAnimationManager::updateAnimationHelper(const AnimationTrackListMap<T *
// Adjustment to the easing values, to limit the range of the control points,
// so we get the same "smooth" easing curves as in Studio 1.0
- static const float adjustment = 0.3333334f;
+ static const float adjustment = 1.0f / 3.0f;
// p0
const QVector2D coordinates(it->time, it->value);