[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13586] trunk/blender/source/blender/src/ editaction.c:

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Feb 5 23:46:26 CET 2008


Revision: 13586
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13586
Author:   blendix
Date:     2008-02-05 23:46:26 +0100 (Tue, 05 Feb 2008)

Log Message:
-----------

Bugfix for infinite loop in Sample Keys function in the action editor,
with two keyframes on the same location.

Modified Paths:
--------------
    trunk/blender/source/blender/src/editaction.c

Modified: trunk/blender/source/blender/src/editaction.c
===================================================================
--- trunk/blender/source/blender/src/editaction.c	2008-02-05 21:09:38 UTC (rev 13585)
+++ trunk/blender/source/blender/src/editaction.c	2008-02-05 22:46:26 UTC (rev 13586)
@@ -1634,12 +1634,12 @@
 						
 						/* free temp cache */
 						MEM_freeN(value_cache);
+
+						/* as we added keyframes, we need to compensate so that bezt is at the right place */
+						bezt = icu->bezt + i + range - 1;
+						i += (range - 1);
 					}
 					
-					/* as we added keyframes, we need to compensate so that bezt is at the right place */
-					bezt = icu->bezt + i + range - 1;
-					i += (range - 1);
-					
 					/* bezt was selected, so it now marks the start of a whole new chain to search */
 					start= bezt;
 					end= NULL;





More information about the Bf-blender-cvs mailing list