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-07 17:40:51 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-10-12 15:02:18 +0300
commite3ad392b9849a56ad05e1711e06be0d77843aafb (patch)
treeff2bd0b62ce5ea3a33f685ee604f4da71bc62d53 /source/blender/editors/animation/keyframing.c
parentaafd71a8a160bdf44ab3ccea37e88bb90b87a2ac (diff)
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.
Diffstat (limited to 'source/blender/editors/animation/keyframing.c')
-rw-r--r--source/blender/editors/animation/keyframing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index 431ec9e0526..c2a772604f2 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -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) {