[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14511] trunk/blender/source/blender/ blenkernel/intern/action.c: Added a check to make sure repeat value isn't 0 .
Joshua Leung
aligorith at gmail.com
Tue Apr 22 05:43:45 CEST 2008
Revision: 14511
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14511
Author: aligorith
Date: 2008-04-22 05:43:14 +0200 (Tue, 22 Apr 2008)
Log Message:
-----------
Added a check to make sure repeat value isn't 0.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/action.c
Modified: trunk/blender/source/blender/blenkernel/intern/action.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/action.c 2008-04-21 22:17:49 UTC (rev 14510)
+++ trunk/blender/source/blender/blenkernel/intern/action.c 2008-04-22 03:43:14 UTC (rev 14511)
@@ -489,9 +489,10 @@
{
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;
-
scale = abs(strip->scale); /* scale must be positive (for now) */
actlength = strip->actend-strip->actstart;
More information about the Bf-blender-cvs
mailing list