Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-11-05 20:35:34 +0300
committerAntonioya <blendergit@gmail.com>2018-11-05 20:35:34 +0300
commita120b120ce380017324e982c2277cb8fca52f39d (patch)
tree30f86df1d187c79ef083538b9866a18bfaf8b3a8 /source/blender/gpencil_modifiers
parentb4dfe00fd60232e9e79cf1a28e50bb91625d2b55 (diff)
GP: Fix Time Offset bug when use range
The frames greater than frame range were wrongly calculated.
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c b/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c
index 88a5a789466..56743e3c716 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c
@@ -130,7 +130,7 @@ static int remapTime(
}
if (cfra > efra) {
- cfra = sfra + (cfra - ((cfra / efra) * efra));
+ cfra = sfra + (cfra - ((cfra / efra) * efra)) - 1;
}
if (mmd->flag & GP_TIME_KEEP_LOOP) {