[Bf-blender-cvs] [e3ad392b984] master: Animation: always try to match the existing curve when inserting keys

Sybren A. Stüvel noreply at git.blender.org
Mon Oct 12 14:02:53 CEST 2020


Commit: e3ad392b9849a56ad05e1711e06be0d77843aafb
Author: Sybren A. Stüvel
Date:   Wed Oct 7 16:40:51 2020 +0200
Branches: master
https://developer.blender.org/rBe3ad392b9849a56ad05e1711e06be0d77843aafb

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



More information about the Bf-blender-cvs mailing list