[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39389] branches/soc-2011-pepper/source/ blender/editors/animation/keyframes_edit.c: Bugfix [#28244] Setting vector handle in fcurve can fail

Joshua Leung aligorith at gmail.com
Sun Aug 14 12:19:21 CEST 2011


Revision: 39389
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39389
Author:   aligorith
Date:     2011-08-14 10:19:21 +0000 (Sun, 14 Aug 2011)
Log Message:
-----------
Bugfix [#28244] Setting vector handle in fcurve can fail

So apparently this was a regression from 2.4x, since vector handles
were one of the handle types which could be set independently for each
handle (vs both needing to be the same, for example, Auto Handles)

Modified Paths:
--------------
    branches/soc-2011-pepper/source/blender/editors/animation/keyframes_edit.c

Modified: branches/soc-2011-pepper/source/blender/editors/animation/keyframes_edit.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/animation/keyframes_edit.c	2011-08-14 10:17:41 UTC (rev 39388)
+++ branches/soc-2011-pepper/source/blender/editors/animation/keyframes_edit.c	2011-08-14 10:19:21 UTC (rev 39389)
@@ -792,12 +792,8 @@
 /* Sets the selected bezier handles to type 'vector'  */
 static short set_bezier_vector(KeyframeEditData *UNUSED(ked), BezTriple *bezt) 
 {
-	if ((bezt->f1 & SELECT) || (bezt->f3 & SELECT)) {
-		if (bezt->f1 & SELECT) bezt->h1= HD_VECT;
-		if (bezt->f3 & SELECT) bezt->h2= HD_VECT;
-		
-		ENSURE_HANDLES_MATCH(bezt);
-	}
+	if (bezt->f1 & SELECT) bezt->h1= HD_VECT;
+	if (bezt->f3 & SELECT) bezt->h2= HD_VECT;
 	return 0;
 }
 




More information about the Bf-blender-cvs mailing list