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:
authorJoshua Leung <aligorith@gmail.com>2008-04-22 07:43:14 +0400
committerJoshua Leung <aligorith@gmail.com>2008-04-22 07:43:14 +0400
commitfddb50d2b56abf507cb2239e68ff329d48cf988b (patch)
tree6d97775bc0d4cca958bfb4ddbee83a94356928c8 /source/blender
parent65ca9c204c5411f7b578d367d949c891da3126c6 (diff)
Added a check to make sure repeat value isn't 0.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/action.c3
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;