no-longer select handles when transforming in the dopesheet since now the dope sheet...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 29 Sep 2011 06:13:25 +0000 (06:13 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 29 Sep 2011 06:13:25 +0000 (06:13 +0000)
also remove invalid comment.

source/blender/editors/interface/interface_ops.c
source/blender/editors/transform/transform_conversions.c

index ea7e8fb81bc02004c0bc0664fb135a2b9ee0e5f4..081b528d153e90fc79eccba4d37534a782331cad 100644 (file)
@@ -306,9 +306,6 @@ static int reset_default_button_exec(bContext *C, wmOperator *op)
        /* 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)) {
index c2d63fa824637367344ae07fcc09a4b2d63cf1ae..c3a249d69bc65d6c1582df1cbf2bcd4a1ed89de3 100644 (file)
@@ -2890,12 +2890,11 @@ static int count_fcurve_keys(FCurve *fcu, char side, float cfra)
        /* 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;
+                       }
                }
        }