From fddb50d2b56abf507cb2239e68ff329d48cf988b Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 22 Apr 2008 03:43:14 +0000 Subject: Added a check to make sure repeat value isn't 0. --- source/blender/blenkernel/intern/action.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 76ee7c59750..3025667aa32 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -489,9 +489,10 @@ static float get_actionstrip_frame(bActionStrip *strip, float cframe, int invert { float length, actlength, repeat, scale; + if(strip->repeat == 0.0f) strip->repeat = 1.0f; repeat = (strip->flag & ACTSTRIP_USESTRIDE) ? (1.0f) : (strip->repeat); - if(strip->scale == 0.0f) strip->scale= 1.0f; + if(strip->scale == 0.0f) strip->scale= 1.0f; scale = abs(strip->scale); /* scale must be positive (for now) */ actlength = strip->actend-strip->actstart; -- cgit v1.2.3