[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29958] trunk/blender/source/blender/ editors/animation/keyframes_draw.c: Bugfix #22584: Long Keyframes not working

Joshua Leung aligorith at gmail.com
Mon Jul 5 04:00:27 CEST 2010


Revision: 29958
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29958
Author:   aligorith
Date:     2010-07-05 04:00:24 +0200 (Mon, 05 Jul 2010)

Log Message:
-----------
Bugfix #22584: Long Keyframes not working

This was broken by a bad (unfinished/unused) case, which stopped them from being created properly in most cases.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/keyframes_draw.c

Modified: trunk/blender/source/blender/editors/animation/keyframes_draw.c
===================================================================
--- trunk/blender/source/blender/editors/animation/keyframes_draw.c	2010-07-05 01:11:25 UTC (rev 29957)
+++ trunk/blender/source/blender/editors/animation/keyframes_draw.c	2010-07-05 02:00:24 UTC (rev 29958)
@@ -240,7 +240,7 @@
 	/* look over each BezTriple in this container */
 	for (i = 0; i < abk->numBezts; i++) {		
 		/* only do exact match for now... */
-		if (i >= sizeof(abk->bezts)/sizeof(BezTriple)) {
+		if (/*i >= MAX_ABK_BUFSIZE*/0) {
 			// TODO: this case needs special handling
 		}
 		else {
@@ -283,7 +283,7 @@
 	abk= (ActBeztColumn *)BLI_dlrbTree_search_prev(beztTree, compare_abk_bezt, beztn);
 		/* if applicable, the BezTriple with the same value */
 	prev= (abk) ? abk_get_bezt_with_value(abk, beztn->vec[1][1]) : NULL;
-
+	
 	/* check if block needed - same value(s)?
 	 *	-> firstly, handles must have same central value as each other
 	 *	-> secondly, handles which control that section of the curve must be constant





More information about the Bf-blender-cvs mailing list