From 6a28d14f7236b3e6fbe7409da9ee916878d65feb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 12 Feb 2020 14:20:03 +1100 Subject: Fix T73740: Auto-key "Only Available" de-selects f-curves This was especially bad with "Only Selected Curve Keyframes", effectively making f-curves un-editable on each insertion. --- source/blender/editors/animation/keyframing.c | 2 -- source/blender/editors/transform/transform_convert.c | 1 - 2 files changed, 3 deletions(-) diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index 188192e10ae..6c4fe93e19a 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -3016,8 +3016,6 @@ bool ED_autokeyframe_property( ToolSettings *ts = scene->toolsettings; short flag = ANIM_get_keyframing_flags(scene, 1); - fcu->flag &= ~FCURVE_SELECTED; - /* Note: We use rnaindex instead of fcu->array_index, * because a button may control all items of an array at once. * E.g., color wheels (see T42567). */ diff --git a/source/blender/editors/transform/transform_convert.c b/source/blender/editors/transform/transform_convert.c index 869c23de74c..9402cceca6a 100644 --- a/source/blender/editors/transform/transform_convert.c +++ b/source/blender/editors/transform/transform_convert.c @@ -1417,7 +1417,6 @@ void autokeyframe_object(bContext *C, Scene *scene, ViewLayer *view_layer, Objec if (adt && adt->action) { ListBase nla_cache = {NULL, NULL}; for (fcu = adt->action->curves.first; fcu; fcu = fcu->next) { - fcu->flag &= ~FCURVE_SELECTED; insert_keyframe(bmain, reports, id, -- cgit v1.2.3