[Bf-blender-cvs] [87d654535c7] temp-T81874-box-select-active-keyframe: Animation: Change active FCurve in box/circle/lasso select

Sybren A. Stüvel noreply at git.blender.org
Mon Oct 26 18:18:41 CET 2020


Commit: 87d654535c7162c8f3f1230d43137b43cd9cd864
Author: Sybren A. Stüvel
Date:   Mon Oct 26 18:18:31 2020 +0100
Branches: temp-T81874-box-select-active-keyframe
https://developer.blender.org/rB87d654535c7162c8f3f1230d43137b43cd9cd864

Animation: Change active FCurve in box/circle/lasso select

Update the active FCurve when box/circle/lasso-selecting, such that after
the operator has finished the active curve is actually the last-operated-on
FCurve.

The operator already would deactivate the active FCurve. However, it would
not re-activate one any more, which caused the active keyframe to become
inactive.

===================================================================

M	source/blender/editors/space_graph/graph_select.c

===================================================================

diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c
index 5dabdafd27b..f28d8162d14 100644
--- a/source/blender/editors/space_graph/graph_select.c
+++ b/source/blender/editors/space_graph/graph_select.c
@@ -628,6 +628,7 @@ static void box_select_graphkeys(bAnimContext *ac,
         /* select the curve too now that curve will be touched */
         if (selectmode == SELECT_ADD) {
           fcu->flag |= FCURVE_SELECTED;
+          ANIM_set_active_channel(ac, ac->data, ac->datatype, filter, fcu, ANIMTYPE_FCURVE);
         }
       }



More information about the Bf-blender-cvs mailing list