Animation: always try to match the existing curve when inserting keys

Previously Blender would only match the existing curve slope when the
to-be-inserted key value was already very close to the curve. This check
is now removed, allowing for sliders in the graph editor to subtly
change the curve, and for keyframes added with ctrl+click to follow the
curve better.
This commit is contained in:
Sybren A. Stüvel 2020-10-07 16:40:51 +02:00
parent aafd71a8a1
commit e3ad392b98
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ static void subdivide_nonauto_handles(const FCurve *fcu,
}
/* Decide when to force auto to manual. */
if (!BEZT_IS_AUTOH(bezt) || fabsf(delta) >= 0.001f) {
if (!BEZT_IS_AUTOH(bezt)) {
return;
}
if ((prev_auto || next_auto) && fcu->auto_smoothing == FCURVE_SMOOTH_CONT_ACCEL) {