Fix #114685: GP time offset modifier doesn't work if the animation is 1 frame long

This is due to the early return of current frame when start and end of
custom range is same
This commit is contained in:
Pratik Borhade
2023-11-10 16:07:05 +05:30
parent 9638dfbe43
commit 270fc860cf

View File

@@ -102,7 +102,7 @@ static int remap_time(GpencilModifierData *md,
offset = abs(efra - sfra + offset + 1);
}
/* Avoid inverse ranges. */
if (efra <= sfra) {
if (efra < sfra) {
return cfra;
}