[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40679] trunk/blender/source/blender/ editors: no-longer select handles when transforming in the dopesheet since now the dope sheet acts as if handles are hidden .

Campbell Barton ideasman42 at gmail.com
Thu Sep 29 08:13:26 CEST 2011


Revision: 40679
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40679
Author:   campbellbarton
Date:     2011-09-29 06:13:25 +0000 (Thu, 29 Sep 2011)
Log Message:
-----------
no-longer select handles when transforming in the dopesheet since now the dope sheet acts as if handles are hidden.
also remove invalid comment.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/interface_ops.c
    trunk/blender/source/blender/editors/transform/transform_conversions.c

Modified: trunk/blender/source/blender/editors/interface/interface_ops.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_ops.c	2011-09-29 05:03:21 UTC (rev 40678)
+++ trunk/blender/source/blender/editors/interface/interface_ops.c	2011-09-29 06:13:25 UTC (rev 40679)
@@ -306,9 +306,6 @@
 	/* Since we dont want to undo _all_ edits to settings, eg window
 	 * edits on the screen or on operator settings.
 	 * it might be better to move undo's inline - campbell */
-	/* Note that buttons already account for this, it might be better to
-	 * have a way to edit the buttons rather than set the rna since block
-	 * callbacks also fail to run. */
 	if(success) {
 		ID *id= ptr.id.data;
 		if(id && ID_CHECK_UNDO(id)) {

Modified: trunk/blender/source/blender/editors/transform/transform_conversions.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_conversions.c	2011-09-29 05:03:21 UTC (rev 40678)
+++ trunk/blender/source/blender/editors/transform/transform_conversions.c	2011-09-29 06:13:25 UTC (rev 40679)
@@ -2890,12 +2890,11 @@
 	/* only include points that occur on the right side of cfra */
 	for (i=0, bezt=fcu->bezt; i < fcu->totvert; i++, bezt++) {
 		if (bezt->f2 & SELECT) {
-			/* fully select the other two keys */
-			bezt->f1 |= SELECT;
-			bezt->f3 |= SELECT;
-
-			if (FrameOnMouseSide(side, bezt->vec[1][0], cfra))
+			/* no need to adjust the handle selection since they are assumed
+			 * selected (like graph editor with SIPO_NOHANDLES) */
+			if (FrameOnMouseSide(side, bezt->vec[1][0], cfra)) {
 				count += 1;
+			}
 		}
 	}
 




More information about the Bf-blender-cvs mailing list