AnimationClip: fix the way we compute the duration


We wrongly assumed the start time of a clip was always 0. In practice this
might not be the case. Therefore, we now compute duration as tEnd - tStart.

Change-Id: I13ca860f3366c2aba5e978cb0c955e7bb2e7bc39
Pick-to: 6.2 5.15
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
commit7b23cb1ca5b32fcf24f889e79cec756786f86233
parent34c37671d63da2a195fee34b5a6409294b19d510
authorPaul Lemire <paul.lemire@kdab.com>
committerPaul Lemire <paul.lemire@kdab.com>
commit timeWed, 24 Nov 2021 07:26:04 +0100