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-07 17:41:36 +0300
commit0e0cc2cea91e4f57d34ee039e0c915d6c8ee4116 (patch)
treeecb2c47ca33126c3db24ca60cda66ca1825d94b8
parent2f1a0f6f0eabe090d3ea95c4f508ef72454369a2 (diff)
Animation: always try to match the existing curve when inserting keystemp-fcurve-key-insert-follow-curve
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.
-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 e4b73ea65a0..b992757dd3f 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) {