[Bf-blender-cvs] [a120b120ce3] blender2.8: GP: Fix Time Offset bug when use range

Antonioya noreply at git.blender.org
Mon Nov 5 18:35:42 CET 2018


Commit: a120b120ce380017324e982c2277cb8fca52f39d
Author: Antonioya
Date:   Mon Nov 5 18:35:34 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBa120b120ce380017324e982c2277cb8fca52f39d

GP: Fix Time Offset bug when use range

The frames greater than frame range were wrongly calculated.

===================================================================

M	source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c

===================================================================

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) {



More information about the Bf-blender-cvs mailing list