[Bf-blender-cvs] [9d9efbb2f8b] active-fcurve-keyframe: insert_vert_fcurve sets active keyframe

Hans Goudey noreply at git.blender.org
Thu Jul 16 20:16:23 CEST 2020


Commit: 9d9efbb2f8b3c4b2858bac8eeecc8427f843a38e
Author: Hans Goudey
Date:   Tue Jun 9 11:11:33 2020 -0400
Branches: active-fcurve-keyframe
https://developer.blender.org/rB9d9efbb2f8b3c4b2858bac8eeecc8427f843a38e

insert_vert_fcurve sets active keyframe

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

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

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

diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index 2aa8d468e2d..7a1582910ba 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -555,6 +555,9 @@ int insert_vert_fcurve(
   /* add temp beztriple to keyframes */
   a = insert_bezt_fcurve(fcu, &beztr, flag);
 
+  /* Set the FCurve's active keyframe to this index. */
+  fcu->active_key = a;
+
   /* what if 'a' is a negative index?
    * for now, just exit to prevent any segfaults
    */



More information about the Bf-blender-cvs mailing list