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; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs