diff options
| author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2025-12-18 09:32:04 +0100 |
|---|---|---|
| committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2025-12-22 14:40:12 +0100 |
| commit | 04466da863f51a852cbb19814c05016018d7ca54 (patch) | |
| tree | 27c7dab5ed5dae76eb88efb7049c844f01ed3381 /src/qml/jsruntime/qv4estable.cpp | |
| parent | bb7391d241e186cb33b71c0cfdfb438cd5f7edf9 (diff) | |
qml generator: Reduce redundancy in animation output
Whenever three consecutive keyframes have the same value, the middle
one is redundant. Simplify the produced QML code by removing such
keyframes. The practical result is that consecutive PauseAnimations
get squashed into one.
For animated (morphing) paths, simplify further by detecting if two
consecutive paths are identical. Then the second is redundant, so drop
it and instead make the PathInterpolated factor point at the first one
for the keyframe(s) for the second.
Pick-to: 6.11
Change-Id: I7a77c73c6fd98f574fcf26f4dad45ca92a0def0b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4estable.cpp')
0 files changed, 0 insertions, 0 deletions
