3Dickulus / FragM

Derived from https://github.com/Syntopia/Fragmentarium/
GNU General Public License v3.0
344 stars 30 forks source link

Easing curve loop off by 1 #191

Closed 3Dickulus closed 1 year ago

3Dickulus commented 1 year ago

the bug loop = 60 should run from 0 to 59 but QPropertyAnimation sets interpolated value at frame 59 the same as interpolated value at 0

To Reproduce create an easing curve with many loops ie: 60 loops of 60 frames = 3600 frames @ 30fps = 120sec

Expected behavior runs smooth , stops where it should, holds the start value valid for preceding frames, holds the end value valid for following frames

x86_64 GNU/Linux Vendor: NVIDIA Corporation Renderer: NVIDIA GeForce GTX 760/PCIe/SSE2 GL Driver: 4.5.0 NVIDIA 470.161.03 Display using GL 4.5 Core profile

Additional context QPropertyAnimation is not intended to be used for in this way.