diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-04-22 07:43:14 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-04-22 07:43:14 +0400 |
commit | fddb50d2b56abf507cb2239e68ff329d48cf988b (patch) | |
tree | 6d97775bc0d4cca958bfb4ddbee83a94356928c8 /source/blender/blenkernel/intern/action.c | |
parent | 65ca9c204c5411f7b578d367d949c891da3126c6 (diff) |
Added a check to make sure repeat value isn't 0.
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |