fixed time duration not including ending frame

This commit is contained in:
Rowan Douglas 2023-10-05 14:00:06 +01:00 committed by GitHub
parent 3f101d48d4
commit 27ec013f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4444,7 +4444,7 @@ int Timeline::tagFramesDuration(const Tag* tag) const
int duration = 0;
for (frame_t f=tag->fromFrame();
f<tag->toFrame(); ++f) {
f<=tag->toFrame(); ++f) {
duration += m_sprite->frameDuration(f);
}
return duration;