[Bf-blender-cvs] [0e0cc2cea91] temp-fcurve-key-insert-follow-curve: Animation: always try to match the existing curve when inserting keys

Sybren A. Stüvel noreply at git.blender.org
Wed Oct 7 16:48:13 CEST 2020


Commit: 0e0cc2cea91e4f57d34ee039e0c915d6c8ee4116
Author: Sybren A. Stüvel
Date:   Wed Oct 7 16:40:51 2020 +0200
Branches: temp-fcurve-key-insert-follow-curve
https://developer.blender.org/rB0e0cc2cea91e4f57d34ee039e0c915d6c8ee4116

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.

===================================================================

M	source/blender/editors/animation/keyframing.c

===================================================================

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) {



More information about the Bf-blender-cvs mailing list