Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-10-26 20:18:31 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-10-26 20:18:31 +0300
commit87d654535c7162c8f3f1230d43137b43cd9cd864 (patch)
treeb6b102403c266d517c3409e01c2ebed263204a58
parenteccfa53ad42ca98b6b7b8eec55fa4720b6ab43b2 (diff)
Animation: Change active FCurve in box/circle/lasso selecttemp-T81874-box-select-active-keyframe
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.
-rw-r--r--source/blender/editors/space_graph/graph_select.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}